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

Steve French smfrench at austin.rr.com
Wed Sep 20 19:23:16 GMT 2006


Shaggy reminded me about bind mounts, if it were not for the problem 
doing umount, then it would be safer to do
the "deep tree mounts" (bugzilla.samba.org bug #4040) in userspace (in 
mount.cifs)
    mount -t cifs //server/share/path    /mnt
would be handled by mount.cifs by doing
    mount -t cifs //server/share /mnt
    mount --bind /mnt/path /mnt

Although this is safer (no kernel code change needed) it causes the 
problem that we
would have to find a way to automatically do "umount /mnt" twice
(to get rid of bind mount and the underlying mount).

Ideas?


More information about the linux-cifs-client mailing list