linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Removing shared subtrees?
@ 2014-09-29 23:45 Andy Lutomirski
  2014-09-30  0:09 ` Al Viro
  0 siblings, 1 reply; 9+ messages in thread
From: Andy Lutomirski @ 2014-09-29 23:45 UTC (permalink / raw)
  To: Linux FS Devel, linux-kernel@vger.kernel.org, Eric W. Biederman,
	Al Viro

As far as I know, shared subtrees in recursive bind mounts are a
misfeature that existed for the sole purpose of allowing recursive
binds + chroot to emulate mount namespaces.  But we have mount
namespaces, so what are they for?

They're totally fsked up.  For example, don't try this on a live system:

# mount --make-rshared /
# mount --rbind / /mnt
# umount -l /mnt

It will unmount *everything*.  On Fedora, you don't even need the
--make-rshared part.  WTF?

Can we just remove the feature entirely in linux-next and see if
anyone complains?  I'm all for propagation across mount namespaces,
but I suspect that, at the very least, there is no legitimate reason
whatsoever for mounts to propagate from a recursive bind mount back to
the origin.

IOW, can we kill shared mounts and just keep private and slave mounts?

--Andy

-- 
Andy Lutomirski
AMA Capital Management, LLC

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-09-30  2:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29 23:45 Removing shared subtrees? Andy Lutomirski
2014-09-30  0:09 ` Al Viro
2014-09-30  0:14   ` Andy Lutomirski
2014-09-30  0:29     ` Al Viro
2014-09-30  0:36       ` Andy Lutomirski
2014-09-30  1:14         ` Al Viro
2014-09-30  1:24           ` Andy Lutomirski
2014-09-30  2:21             ` Al Viro
2014-09-30  2:40               ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).