[linux-cifs-client] Re: mount to symlink dir

Steve French smfrench at austin.rr.com
Wed Sep 20 18:18:52 GMT 2006


Steve French wrote:
> In testing a way to handle the request for "deep tree mounts" (path 
> prefixes) on cifs mounts (Samba bugzilla 4040), I ran into a strange 
> problem.
>
> I exported /boot on the server but accidently typed in boot as the 
> path prefix
> ie
>    mount -t cifs //localhost/boot             /mnt -o prefixpath=boot
> which is basically
>    mount -t cifs //localhost/boot/boot     /mnt
>
> or will be when mount.cifs is changed to parse for the extra / in the 
> UNC names and
> convert it to the new cifs kernel mount parm "prefixpath" which we 
> prepend to path
> based requests.
>
> Problem is /boot/boot is a symlink to . which results in strange 
> problems.
>
> Basically this means that //localhost/boot/boot resolves to . which is 
> strange.
>
> If you try to mount to a file (rather than directory) target - mount 
> will fail - but
> what is mount supposed to do if you mount to a symlink to .
>
> Ideas?
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: deeptreemount.patch
Type: text/x-patch
Size: 9706 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux-cifs-client/attachments/20060920/baa76825/deeptreemount.bin


More information about the linux-cifs-client mailing list