Skip to contentSkip to conversation

Minor bug (?) in mountpoint handling in 2.4.18

DISCUSSION Michael Meskes 2 participants 2 messages Jul 17, 2002

lore
Share & tools
lore
#0 lore raw

fs/namespace::do_add_mount() says:

...
/* Refuse the same filesystem on the same mount point */
...

However, it is still possible to mount the same NFS filesystem to the same mountpoitn several times:

mme@feivel:/.autofs/nfs/home/mme$ sudo mount zwerg:/exports/usr.local
/mnt
Password:
mme@feivel:/.autofs/nfs/home/mme$ sudo mount zwerg:/exports/usr.local
/mnt
mme@feivel:/.autofs/nfs/home/mme$ df|grep mnt
                       8570480   5685768   2449352  70% /mnt
                       8570480   5685768   2449352  70% /mnt

I'm not sure if this really is a bug as technically it does not create a problem, but I know a lot of users who are pretty confused.

Michael

P.S.: Please CC me on replies.

Signature · 4 lines
Michael Meskes
[email protected]
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!
#1 lore raw
Quoted 5 lines · Michael Meskes

fs/namespace::do_add_mount() says:

...
/* Refuse the same filesystem on the same mount point */
...

[...]

Quoted 2 lines

I'm not sure if this really is a bug as technically it does not create a problem, but I know a lot of users who are pretty confused.

In fact it does create problems. If you have an entry for a nfs mount in /etc/fstab allowing it to be mounted by ordinary users using th user mount option, it is no longer possible for such an user to unmount the corresponding file system once it is mounted multiple times. Instead the following error message is returned:
umount: it seems /var/www/VTX is mounted multiple times

Quoted 1 line

P.S.: Please CC me on replies.

ACK