Thread (2 messages) 2 messages, 2 authors, 2002-05-13

Re: [RFC] remove pointless mount check

From: Alexander Viro <hidden>
Date: 2002-05-13 17:06:14


On Mon, 13 May 2002, Christoph Hellwig wrote:
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.

There is no valid reason to keep this, especially as it breaks
usefull setups (all user-writeable filesystems mounted -o noexec,
overmount of /tmp in private namespace for Debian postinst scripts)
There is, unfortunately - ask Alan and aeb for details.

However, I really wonder why would you want it.  There is nothing that
could be achieved by removal of that check - you can trivially get
the same operation by
	mount --bind <mountpoint> <mountpoint>
	mount -o remount,<...> <mountpoint>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help