Skip to contentSkip to conversation

remove pointless mount check

RFC [email protected] 1 participant 1 message May 14, 2002 VFS

lore
Share & tools
lore
#0 lore raw

I have no idea why but during 2.4 someone put a stupid check in the mount code to check whether device and mount point are the same and refuse to overmount if true.

I suppose that someone was me.

Such a check may be a bit ad-hoc, but it is really useful. It is because of this test that so few people are bitten by the new semantics of mount.

The idea that a filesystem can be mounted several places is not a traditional Unix one. Most users don't know about it.

Without the test people, especially GUI users (click to mount), tend to get stacks of identical filesystems mounted the same place. That is only inconvenient and confusing: after an umount the thing is still mounted.

Someone who types "mount -a" just wants all filesystems to be mounted, but has no desire for some to be mounted more than once.

No, removing this check is a really bad idea.

Andries