Bug 11273 - Can't mount Subdirectories
Summary: Can't mount Subdirectories
Status: RESOLVED FIXED
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 3.x
Hardware: x64 Linux
: P5 normal
Target Milestone: ---
Assignee: Steve French
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-13 12:11 UTC by Paul Becker
Modified: 2017-05-03 09:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Becker 2015-05-13 12:11:10 UTC
Mounting a subdirectory of a Samba Share isn't possible with the updated binaries on Cent OS 7 anymore. We need this option for autofs mounting just subdirectories for specific users. 

[pb@extrasrv1 ~]# rpm -qa | grep samba
samba-winbind-modules-4.1.12-23.el7_1.x86_64
samba-winbind-clients-4.1.12-23.el7_1.x86_64
samba-client-4.1.12-23.el7_1.x86_64
samba-libs-4.1.12-23.el7_1.x86_64
samba-common-4.1.12-23.el7_1.x86_64
samba-winbind-4.1.12-23.el7_1.x86_64

[pb@extrasrv1 ~]# mount -t cifs -o noserverino,sec=ntlm,rw,noperm,user=fordasia //storagesrv1.eom.de/extranet/fordasia /mnt/extranet/
Password for fordasia@//storagesrv1.eom.de/extranet/fordasia:  ***************
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@extrasrv1 ~]# mount -t cifs -o noserverino,sec=ntlm,rw,noperm,user=fordasia //storagesrv1.eom.de/extranet /mnt/extranet/
Password for fordasia@//storagesrv1.eom.de/extranet:  ***************
[root@extrasrv1 ~]# ls -l /mnt/extranet/
total 0
...
drwxr-xr-x 2 root root 0 Mar  6 09:21 fordasia


We are still able mounting the share with older binaries in CentOS 6. Please let me know if I am able to serve with further details.
Comment 1 Björn Jacke 2015-05-15 11:51:13 UTC
this is a kernel cifs vfs issue
Comment 2 Steve French 2017-05-03 09:35:45 UTC
Can you retest this - we have added some fixes for prefixpath mounts and this works in reasonably current kernels.