Bug 1212763 - cifs: Content Duplication: <Windows share>Mounting Secondary Folder Shows Contents of First Folder in both the Mount Points
Summary: cifs: Content Duplication: <Windows share>Mounting Secondary Folder Shows Co...
Status: RESOLVED NORESPONSE
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Leap 15.5
Hardware: Other openSUSE Leap 15.5
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-27 08:58 UTC by Rohith kumar
Modified: 2024-06-18 16:00 UTC (History)
3 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
ematsumiya: needinfo? (rohithmkumar96)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rohith kumar 2023-06-27 08:58:55 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).
Comment 1 Rohith kumar 2023-06-27 10:12:08 UTC
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.
Comment 2 Andreas Stieger 2023-06-30 23:27:39 UTC
Do not touch the priority field unless you are a developer. Moving to kernel as cigs is in the kernel.
Comment 3 Enzo Matsumiya 2024-02-20 16:22:10 UTC
(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
Comment 4 Enzo Matsumiya 2024-06-18 16:00:21 UTC
Closing as no response/activity for too long.
Please reopen with the requested logs in comment 3 if the issue shows up again.