[linux-cifs-client] mount to symlink dir
Steve French
smfrench at austin.rr.com
Wed Sep 20 18:10:06 GMT 2006
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?
More information about the linux-cifs-client
mailing list