Re: [PATCH v3 07/12] man/man2/fsmount.2: document "new" mount API

From: Aleksa Sarai
Date: Wed Aug 20 2025 - 06:39:41 EST


On 2025-08-20, Askar Safin <safinaskar@xxxxxxxxxxxx> wrote:
> ---- On Tue, 12 Aug 2025 18:33:04 +0400 Aleksa Sarai <cyphar@xxxxxxxxxx> wrote ---
> > Unlike open_tree(2) with OPEN_TREE_CLONE, fsmount() can only be called
> > once in the lifetime of a filesystem context.
>
> Weird. open_tree doesn't get filesystem context as argument at all.
> I suggest just this:
>
> fsmount() can only be called
> once in the lifetime of a filesystem context.

The reason I wanted to include the comparison is that you can create
multiple mount objects from the same underlying object using
open_tree(2) but that's not possible with fsmount(2) (at least, not
without creating a new filesystem context each time).

--
Aleksa Sarai
Senior Software Engineer (Containers)
SUSE Linux GmbH
https://www.cyphar.com/

Attachment: signature.asc
Description: PGP signature