Bugzilla – Bug 1212763
cifs: Content Duplication: <Windows share>Mounting Secondary Folder Shows Contents of First Folder in both the Mount Points
Last modified: 2024-06-18 16:00:21 UTC
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Build Identifier: When attempting to mount a secondary folder in openSUSE, the contents of the first folder are displayed in both the first and second mount paths. This results in overlapping causing confusion and incorrect file visibility. The issue persists even after unmounting and remounting the folders with distinct mount points. Reproducible: Always Steps to Reproduce: 1.mkdir -p /mnt/firstmountpath 2.mkdir -p /mnt/secondmountpath 3.mount -t cifs -o username=<username>,password=<password>,domain=<domain> //common_server/folder1 /mnt/firstmountpath 4.mount -t cifs -o username=<username>,password=<password>,domain=<domain> //common_server/folder2 /mnt/secondmountpath 5.ls /mnt/firstmountpath 6.ls /mnt/secondmountpath Actual Results: Running "ls /mnt/secondmountpath" should display the contents of //common_server/folder2 but it has the content of //common_server/folder1. Expected Results: Running "ls /mnt/secondmountpath" should display the contents of //common_server/folder2. I ran the above steps to reproduce on both OpenSUSE 15.4 and OpenSUSE 15.5, this issue is reproducible only on 15.5. The mount.cifs version were same on both the machines(mount.cifs version: 6.15).
Just to clarify, if we mount first folder , unmount it and mounting the second folder works as expected. But if both first and second folders are mounted, if we unmount and remount any folder we can see the folders duplication.
Do not touch the priority field unless you are a developer. Moving to kernel as cigs is in the kernel.
(In reply to Rohith kumar from comment #0) > Actual Results: > Running "ls /mnt/secondmountpath" should display the contents of > //common_server/folder2 but it has the content of //common_server/folder1. I cannot reproduce this. Are you sure that the mounted shares are regular shares (i.e. non-DFS)? If you still can reproduce the bug, please enable the following debugging options and provide the generated log files afterwards: # umount /mnt/<affected directories> # rmmod cifs # dmesg --clear # modprobe cifs # echo 'module cifs +p' > /sys/kernel/debug/dynamic_debug/control # echo 'file fs/smb/client/* +p' > /sys/kernel/debug/dynamic_debug/control # echo 1 > /proc/fs/cifs/cifsFYI # echo 1 > /sys/module/dns_resolver/parameters/debug <reproduce the bug> Save the logs and attach them here: # cat /proc/fs/cifs/dfscache > dfscache.txt # dmesg > dmesg.txt
Closing as no response/activity for too long. Please reopen with the requested logs in comment 3 if the issue shows up again.