Thread (26 messages) 26 messages, 6 authors, 2025-10-22

Re: [PATCH] man/man2/move_mount.2: document EINVAL on multiple instances

From: Alejandro Colomar <alx@kernel.org>
Date: 2025-10-06 11:42:49

Hi Luca,

On Mon, Oct 06, 2025 at 12:32:42PM +0100, Luca Boccassi wrote:
quoted
quoted
 .TP
+.B EINVAL
+The source mount is already mounted somewhere else. Clone it via
[...]
quoted
quoted
+.BR open_tree (2)
+with
+.B \%OPEN_TREE_CLONE
+and use that as the source instead (since Linux 6.15).
The parenthetical in that position makes it unclear if you're saying
that one should use open_tree(2) with OPEN_TREE_CLONE since Linux 6.15,
or if you're saying that this error can happen since that version.
Would you mind clarifying?  I think if you mean that the error can
happen since Linux 6.15, we could make it part of the paragraph tag, as
in unshare(2).
I meant the former, the error is always there, but OPEN_TREE_CLONE can
be used since 6.15 to avoid it. Sent v2 with this and the other fix,
thanks for the prompt review.
Hmmm, I see.  Why not use open_tree(2) and OPEN_TREE_CLONE before 6.15?
The syscall and flag existed, AFAICS.  I think we should clarify --at
least in the commit message--, why that version is important.


Cheers,
Alex

-- 
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help