linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] man/man2/move_mount.2: document EINVAL on multiple instances
@ 2025-10-06 10:38 luca.boccassi
  2025-10-06 11:19 ` Alejandro Colomar
  2025-10-06 11:29 ` [PATCH v2] " luca.boccassi
  0 siblings, 2 replies; 26+ messages in thread
From: luca.boccassi @ 2025-10-06 10:38 UTC (permalink / raw)
  To: alx; +Cc: cyphar, linux-man

From: Luca Boccassi <luca.boccassi@gmail.com>

open_tree() with OPEN_TREE_CLONE is needed to apply a mount multiple
times, otherwise EINVAL is returned by move_mount().

Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
---
As requested by Aleksa on https://github.com/brauner/man-pages-md/pull/19
and based on the 'fs' branch where move_mount(2) was added

 man/man2/move_mount.2 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/man/man2/move_mount.2 b/man/man2/move_mount.2
index 13063ac1f..e3dfc1ea8 100644
--- a/man/man2/move_mount.2
+++ b/man/man2/move_mount.2
@@ -457,6 +457,13 @@ which would otherwise cause the unbindable mounts to be propagated
 was attempted,
 but one of the listed restrictions was violated.
 .TP
+.B EINVAL
+The source mount is already mounted somewhere else. Clone it via
+.BR open_tree (2)
+with
+.B \%OPEN_TREE_CLONE
+and use that as the source instead (since Linux 6.15).
+.TP
 .B ELOOP
 Too many symbolic links encountered
 when resolving one of
-- 
2.47.3


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

end of thread, other threads:[~2025-10-22  7:36 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 10:38 [PATCH] man/man2/move_mount.2: document EINVAL on multiple instances luca.boccassi
2025-10-06 11:19 ` Alejandro Colomar
2025-10-06 11:32   ` Luca Boccassi
2025-10-06 11:42     ` Alejandro Colomar
2025-10-06 11:46       ` Luca Boccassi
2025-10-06 11:57         ` Alejandro Colomar
2025-10-06 12:28           ` Luca Boccassi
2025-10-06 12:37             ` Alejandro Colomar
2025-10-06 13:11               ` Alejandro Colomar
2025-10-06 13:40             ` Aleksa Sarai
2025-10-06 13:44               ` Luca Boccassi
2025-10-07 18:37                 ` Aleksa Sarai
2025-10-07 18:38                   ` Luca Boccassi
2025-10-12  6:14                 ` Askar Safin
2025-10-12  9:40                   ` Luca Boccassi
2025-10-12 11:27                     ` Askar Safin
2025-10-12 12:58                     ` Askar Safin
2025-10-12 13:16                       ` Alejandro Colomar
2025-10-13  5:51                         ` Askar Safin
2025-10-12 14:25                       ` Luca Boccassi
2025-10-12 14:57                         ` Alejandro Colomar
2025-10-12 18:57                           ` G. Branden Robinson
2025-10-16 10:29                             ` Alejandro Colomar
2025-10-13  4:14                         ` Askar Safin
2025-10-22  7:36                 ` Christian Brauner
2025-10-06 11:29 ` [PATCH v2] " luca.boccassi

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).