lkml.org 
[lkml]   [1999]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Minor sys_umount fix (changes semantics slightly)
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.840 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site