Re: [PATCH] Minor sys_umount fix (changes semantics slightly)

Guest section DW (dwguest@win.tue.nl)
Wed, 15 Dec 1999 16:20:14 +0100


On Wed, Dec 15, 1999 at 12:46:10PM +0000, Malcolm Beattie wrote:
> Here's a one-letter patch for 2.3.x to sys_umount to allow it to
> unmount filesystems whose root inode is a symlink.
>
> However, this changes umount semantics very slightly: currently, with
> a 2.2 kernel, if you have a symlink /foo to /some/mountpoint then
> umount("/foo") will unmount /some/mountpoint but after this patch
> that will no longer work. If this inconveniences anyone greatly,
> please scream

Hmm. I think the standards say "If the directory on which a file system
is to be mounted is a symlink, the fs is mounted on the dir to which
the symlink refers" - will check later.

Also, think of the very common case where people mount a CDROM
on /dev/cdrom which is a symlink to /dev/sr0 or /dev/hdc or so.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/