From: Jimmy Zuber <jamz@amazon.com>
To: NeilBrown <neilb@ownmail.net>
Cc: Miklos Szeredi <miklos@szeredi.hu>, <fuse-devel@lists.linux.dev>,
<linux-kselftest@vger.kernel.org>, Shuah Khan <shuah@kernel.org>,
"Bernd Schubert" <bernd@bsbernd.com>,
Jim Harris <jiharris@nvidia.com>,
"Horst Birthelmer" <horst@birthelmer.de>,
Luis Henriques <luis@igalia.com>
Subject: Re: [PATCH v6 1/2] fuse: add FUSE_OPEN_ATOMIC
Date: Fri, 30 Oct 2026 19:24:01 +0000 [thread overview]
Message-ID: <20261030192401.2543699-1-jamz@amazon.com> (raw)
In-Reply-To: <179332437497.269288.7305999595462479305@noble.neil.brown.name>
On Fri, 30 Oct 2026, NeilBrown wrote:
> > - any other file: the server returns the entry only, and the VFS opens
> > it;
>
> Why is this a requirement? I understand that the server *may* choose to
> not open the file, so that the open doesn't happen until after the
> permission check. But shouldn't be up to the server to decide.
This doesn't have to be a requirement, for regular files the server can
open if it chooses to. I'll reword. Are you also asking why this is just
regular files and not directories too? I could look into that if you'd
like? For what it's worth, special files should never get opened by the
server on this path, the kernel opens them itself.
> > The VFS checks the open after the reply, as for other ->atomic_open()
> > filesystems, and the kernel releases the file if the check fails.
> > FMODE_CREATED is set only when the server reports FOPEN_CREATED.
>
> The above para seems to suggest that the server might open a file that
> wasn't created.
Yeah, atomic_open is a lookup+open on the FUSE server, and that open
might be an open-create or just an open. Either way, the server might
open a preexisting file. I'll try to make all of this clearer in the
next rev, once I've gotten any feedback on directional changes here.
Thanks,
Jimmy
next prev parent reply other threads:[~2026-10-30 19:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 13:07 [PATCH v6 0/2] fuse: atomic open Jimmy Zuber
2026-10-29 13:07 ` [PATCH v6 1/2] fuse: add FUSE_OPEN_ATOMIC Jimmy Zuber
2026-10-30 1:39 ` NeilBrown
2026-10-30 19:24 ` Jimmy Zuber [this message]
2026-10-30 22:49 ` NeilBrown
2026-10-29 13:07 ` [PATCH v6 2/2] selftests/fuse: add test for FUSE_OPEN_ATOMIC Jimmy Zuber
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=20261030192401.2543699-1-jamz@amazon.com \
--to=jamz@amazon.com \
--cc=bernd@bsbernd.com \
--cc=fuse-devel@lists.linux.dev \
--cc=horst@birthelmer.de \
--cc=jiharris@nvidia.com \
--cc=linux-kselftest@vger.kernel.org \
--cc=luis@igalia.com \
--cc=miklos@szeredi.hu \
--cc=neilb@ownmail.net \
--cc=shuah@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.