From: Aleksa Sarai <cyphar@cyphar.com>
To: Askar Safin <safinaskar@gmail.com>
Cc: alx@kernel.org, brauner@kernel.org, dhowells@redhat.com,
g.branden.robinson@gmail.com, jack@suse.cz,
linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-man@vger.kernel.org,
mtk.manpages@gmail.com, safinaskar@zohomail.com,
viro@zeniv.linux.org.uk
Subject: Re: [PATCH v4 00/10] man2: document "new" mount API
Date: Sun, 21 Sep 2025 19:58:12 +1000 [thread overview]
Message-ID: <2025-09-21-eldest-expert-wrists-cuddle-CQWTLx@cyphar.com> (raw)
In-Reply-To: <20250921024310.80511-1-safinaskar@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]
On 2025-09-21, Askar Safin <safinaskar@gmail.com> wrote:
> Aleksa, thank you! Don't give up. We all need these manpages.
>
> I see you didn't address some my previous notes.
>
> * move_mount(2) still says "Mount objects cannot be attached beneath the filesystem root".
> I suggest saying "root directory" or "root" or "root directory of the process" or just "/"
> instead. But you may keep this phrase as is, of course.
>
> * Docs for FSPICK_NO_AUTOMOUNT in fspick(2) are still wrong. They say that FSPICK_NO_AUTOMOUNT
> affects all components of path. Similar thing applies to mount_setattr(2) and move_mount(2)
Sorry, I last read through your review comments a month ago, I must've
forgotten to make these changes back then. I'll include them in v5.
(It seems I remembered to change the open_tree(2) automount one but
forgot to do it for the others, oops!)
> * open_tree(2) still says:
> > If flags does not contain OPEN_TREE_CLONE, open_tree() returns a file descriptor
> > that is exactly equivalent to one produced by openat(2) when called with the same dirfd and path.
>
> This is not true if automounts are involved. I suggest adding "modulo automounts". But you may
> keep everything, of course.
Hmmm. As we discussed last time, this sentence is more intended to
indicate that the file descriptor is just a regular open file (with no
dissolve_on_fput() + FMODE_NEED_UNMOUNT magic) rather than the exact
behaviour you get with regards to path lookup.
I would honestly prefer to remove "when called with the same dirfd and
path" rather than add caveats, but I think it makes the sentence less
readable... I'll think about it and try to fix this wording up somehow
for v5.
--
Aleksa Sarai
Senior Software Engineer (Containers)
SUSE Linux GmbH
https://www.cyphar.com/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
next prev parent reply other threads:[~2025-09-21 9:58 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 1:59 [PATCH v4 00/10] man2: document "new" mount API Aleksa Sarai
2025-09-19 1:59 ` [PATCH v4 01/10] man/man2/mount_setattr.2: move mount_attr struct to mount_attr(2type) Aleksa Sarai
2025-09-19 16:04 ` Alejandro Colomar
2025-09-19 1:59 ` [PATCH v4 02/10] man/man2/fsopen.2: document "new" mount API Aleksa Sarai
2025-09-19 16:24 ` Alejandro Colomar
2025-09-19 21:19 ` Aleksa Sarai
2025-09-21 1:33 ` Aleksa Sarai
2025-09-21 8:39 ` Alejandro Colomar
2025-09-19 1:59 ` [PATCH v4 03/10] man/man2/fspick.2: " Aleksa Sarai
2025-09-21 8:53 ` Alejandro Colomar
2025-09-21 14:55 ` Aleksa Sarai
2025-09-21 15:17 ` Alejandro Colomar
2025-09-22 0:25 ` Askar Safin
2025-09-19 1:59 ` [PATCH v4 04/10] man/man2/fsconfig.2: " Aleksa Sarai
2025-09-21 9:26 ` Alejandro Colomar
2025-09-24 6:41 ` Aleksa Sarai
2025-09-24 8:52 ` Alejandro Colomar
2025-09-19 1:59 ` [PATCH v4 05/10] man/man2/fsmount.2: " Aleksa Sarai
2025-09-21 23:08 ` Askar Safin
2025-09-22 1:10 ` Askar Safin
2025-09-19 1:59 ` [PATCH v4 06/10] man/man2/move_mount.2: " Aleksa Sarai
2025-09-19 1:59 ` [PATCH v4 07/10] man/man2/open_tree.2: " Aleksa Sarai
2025-09-21 9:47 ` Alejandro Colomar
2025-09-22 10:09 ` Aleksa Sarai
2025-09-22 13:22 ` Alejandro Colomar
2025-09-24 1:34 ` Aleksa Sarai
2025-09-30 12:32 ` G. Branden Robinson
2025-10-02 22:20 ` Alejandro Colomar
2025-09-19 1:59 ` [PATCH v4 08/10] man/man2/mount_setattr.2: mirror opening sentence from fsopen(2) Aleksa Sarai
2025-09-21 9:50 ` Alejandro Colomar
2025-09-21 10:03 ` Aleksa Sarai
2025-09-21 10:19 ` Alejandro Colomar
2025-09-19 1:59 ` [PATCH v4 09/10] man/man2/open_tree{,_attr}.2: document new open_tree_attr() API Aleksa Sarai
2025-09-21 9:55 ` Alejandro Colomar
2025-09-24 6:31 ` Aleksa Sarai
2025-09-24 8:51 ` Alejandro Colomar
2025-09-19 1:59 ` [PATCH v4 10/10] man/man2/{fsconfig,mount_setattr}.2: add note about attribute-parameter distinction Aleksa Sarai
2025-09-19 12:23 ` Aleksa Sarai
2025-09-21 9:59 ` Alejandro Colomar
2025-09-22 1:06 ` Askar Safin
2025-09-21 2:43 ` [PATCH v4 00/10] man2: document "new" mount API Askar Safin
2025-09-21 9:58 ` Aleksa Sarai [this message]
2025-09-24 11:11 ` Aleksa Sarai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2025-09-21-eldest-expert-wrists-cuddle-CQWTLx@cyphar.com \
--to=cyphar@cyphar.com \
--cc=alx@kernel.org \
--cc=brauner@kernel.org \
--cc=dhowells@redhat.com \
--cc=g.branden.robinson@gmail.com \
--cc=jack@suse.cz \
--cc=linux-api@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
--cc=safinaskar@gmail.com \
--cc=safinaskar@zohomail.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox