lkml.org 
[lkml]   [2004]   [Feb]   [11]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 11 Feb 2004 15:06:22 +0530
FromManeesh Soni <>
SubjectRe: devfs vs udev, thoughts from a devfs user
On Wed, Feb 11, 2004 at 01:59:39AM +0000, Kevin P. Fleming wrote:
> Greg KH wrote:> >Doesn't work for what we want here:> >> >	$ mkdir /tmp/a /tmp/b
> >	$ mount -t ramfs none /tmp/a
> >	$ touch /tmp/a/foo
> >	$ mount --move /tmp/a /tmp/b
> >	$ ls /tmp/b
> >	foo
> >	$ umount /tmp/a
> >	$ ls /tmp/b
> >	$ > > That seems very odd, the "umount /tmp/a" should have failed, given than 
> nothing is mounted there any longer.
I think there is a bug in the mount utility. /etc/mtab is not updated
correctly after "mount --move". /proc/mounts does get updated correctly.
So, if one creates /etc/mtab as sym linked with /proc/mounts, the above 
steps will correctly _fail_ "umount /tmp/a"

Maneesh

-- 
Maneesh Soni
Linux Technology Center, 
IBM Software Lab, Bangalore, India
email: maneesh@in.ibm.com
Phone: 91-80-25044999 Fax: 91-80-5268553
T/L : 9243696
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [from the cache]
©2003-2008