Re: devfs vs udev, thoughts from a devfs user

Maneesh Soni
2004-02-11T09:32:13Z

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