* mount --move and shared namespaces
@ 2016-05-09 22:46 Phillip Susi
2016-05-10 15:48 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Phillip Susi @ 2016-05-09 22:46 UTC (permalink / raw)
To: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
It seems that mount --move does not work on a shared namespace ( now
the default under systemd ), yet you can mount --bind and then umount
the original, which seems to amount to exactly the same thing. Why is
the direct move not allowed?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCgAGBQJXMRMqAAoJEBB5UWFcu6UWUqEH/1WHjvhn8aDKTkUHt+T8NR+z
STybvyZgI/y8Du+O6ikeZ9AEX5aGhaSoz1xTdNbv3QX7NphRDYjO9CJDGhRpXzzt
bVpG0+1DORR5w4/7LlhdqKgjt3UFgo5AFQj+S4NAO3G1vlSaXL33YYP+4YP3Vin7
0XKNCCGbEeEbasGTFNTc0mXPrS5GZBDEStJKfCxb6+SIaMDCoovHRNTY1J1RNudM
5fniCpxBewmY7EnMNJ2UOYvuT3gknNBZuzpvMQ6QhLLVi2R0oyrqxuckFgemv6Dw
TMDXfH1e3nw2WtcywOKt8zsi6RAfLpikJ3+ZDJkmD9ObiCS1RM/RfkjgHYCXB3Y=
=jb7W
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mount --move and shared namespaces
2016-05-09 22:46 mount --move and shared namespaces Phillip Susi
@ 2016-05-10 15:48 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2016-05-10 15:48 UTC (permalink / raw)
To: Phillip Susi; +Cc: linux-kernel
On Mon, May 09, 2016 at 06:46:02PM -0400, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> It seems that mount --move does not work on a shared namespace ( now
> the default under systemd ), yet you can mount --bind and then umount
> the original, which seems to amount to exactly the same thing. Why is
> the direct move not allowed?
You have something mounted on /foo and events from /foo propagated to
/bar. You move the instance on /foo to /baz; what to do with one on
/bar? Propagation from /baz might have nothing whatsoever in common
with that on /foo, so "move to the corresponding recepients of events
for /baz" is not an answer...
Move *into* shared is allowed - the one you move ends up relocated and
cloned, with clones attached to the places where events propagate to.
Move *from* shared... No sane semantics.
And no, mount --move is *not* mount --bind + umount - it really moves
the vfsmount, so anything sitting in that subtree will find itself at
the new location.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-10 15:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 22:46 mount --move and shared namespaces Phillip Susi
2016-05-10 15:48 ` Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox