RE: [2.1.4x] mount(2) bug

PARMELAN Edouard (parmee@postecss.ncrfran.france.ncr.com)
Mon, 04 Aug 97 10:26:00 PDT


> > 1. Humm BUG or FEATURE ?
> > $ mount /dev/sdb2 /mnt/ext2
> > $ mount
> > /dev/sdb2 on / type ext2 (rw)
> > /dev/hdb1 on /boot type ext2 (rw)
> > none on
> > /proc type proc (rw)
> > /dev/sdb2 on /mnt/ext2 type ext2 (rw)
This isn't a BUG nor a FEATURE.
In fs/inode.c:

/*
* FIXME! These need to go through the in-use inodes to
* check whether we can mount/umount/remount.
*/
int fs_may_mount(kdev_t dev)
{
return 1;
}

> >
> > No error as /dev/sdb2 is already mounted. If I do
> > $ unmount /mnt/ext2
> > I got a PANIC
>
> Stupid question here.. why are you trying to unmount the mount
point,
> and not the DEVICE? that's probably the main reason why you're getting
the
> panic.

No that is not a problem. Look at the umount man page. Either the
mount point or device are allowed.

I'm sure its just part of the general wackyness of the new dentry stuff
as it gets worked out.

--
Brad Pepers Proud supporter of Linux and
Ramparts Management Group Ltd. Caldera in Canada!
ramparts@agt.net
http://www.agt.net/public/ramparts Linux rules!

Edouard.Parmelan@France.NCR.COM