linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miklos Szeredi <miklos@szeredi.hu>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Vivek Goyal <vgoyal@redhat.com>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	 Hanna Reitz <hreitz@redhat.com>,
	Bernd Schubert <bernd.schubert@fastmail.fm>
Subject: Re: LOOKUP_HANDLE and FUSE passthrough (was: Persistent FUSE file handles)
Date: Thu, 20 Feb 2025 11:26:25 +0100	[thread overview]
Message-ID: <CAJfpegv3ndPNZOLP2rPrVSMiomOiSJBjsBFwwrCcmfZT08PjpQ@mail.gmail.com> (raw)
In-Reply-To: <CAOQ4uxi2w+S4yy3yiBvGpJYSqC6GOTAZQzzjygaH3TjH7Uc4+Q@mail.gmail.com>

On Wed, 19 Feb 2025 at 18:58, Amir Goldstein <amir73il@gmail.com> wrote:

> I circled back to this. I don't suppose you know of any patches
> in the works?

I'm not aware of any.


> I was thinking about LOOKUP_HANDLE in the context of our
> discussion at Plumbers on readdirplus passthrough.
>
> What we discussed is that kernel could instantiate some FUSE inodes
> (populated during readdirplus passthrough) and at some later time,
> kernel will notify server about those inodes via FUSE_INSTANTIATE
> or similar command, which will instantiate a fuse server inode with
> pre-defined nodeid.
>
> My thinking was to simplify a bit and require a 1-to-1 mapping
> of kernel-server inode numbers to enable the feature of
> FUSE_PASSTHOUGH_INODE (operations), meaning that
> every FUSE inode has at least a potential backing inode which
> reserves its inode number.
>
> But I think that 1-to-1 mapping of ino is not enough and to avoid
> races it is better to have 1-to-1 mapping of file handles so
> FUSE_INSTANTIATE would look a bit like LOOKUP_HANDLE
> but "found" server inode must match the kernel's file handle.
>
> Is any of this making any sense to you?

Not yet.  I remember you explaining why FUSE_INSTANTIATE is needed,
but I don't really remember.

Can you please remind me how exactly you envision readdir/lookup passthrough?

Thanks,
Miklos

  reply	other threads:[~2025-02-20 10:26 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a8828676-210a-99e8-30d7-6076f334ed71@virtuozzo.com>
     [not found] ` <CAOQ4uxgZ08ePA5WFOYFoLZaq_-Kjr-haNzBN5Aj3MfF=f9pjdg@mail.gmail.com>
     [not found]   ` <1bb71cbf-0a10-34c7-409d-914058e102f6@virtuozzo.com>
     [not found]     ` <CAOQ4uxieqnKENV_kJYwfcnPjNdVuqH3BnKVx_zLz=N_PdAguNg@mail.gmail.com>
     [not found]       ` <dc696835-bbb5-ed4e-8708-bc828d415a2b@virtuozzo.com>
     [not found]         ` <CAOQ4uxg0XVEEzc+HyyC63WWZuA2AsRjJmbZBuNimtj=t+quVyg@mail.gmail.com>
     [not found]           ` <20200922210445.GG57620@redhat.com>
2020-09-23  2:49             ` virtiofs uuid and file handles Amir Goldstein
2020-09-23  7:44               ` Miklos Szeredi
2020-09-23  9:56                 ` Amir Goldstein
2020-09-23 11:12                   ` Miklos Szeredi
2021-05-29 16:05                     ` Amir Goldstein
2021-05-31 14:11                       ` Miklos Szeredi
2021-05-31 18:12                         ` Amir Goldstein
2021-06-01 14:49                           ` Vivek Goyal
2021-06-01 15:42                             ` Amir Goldstein
2021-06-01 16:08                               ` Max Reitz
2021-06-01 18:23                                 ` Amir Goldstein
2022-09-11 10:14                 ` Persistent FUSE file handles (Was: virtiofs uuid and file handles) Amir Goldstein
2022-09-11 15:16                   ` Bernd Schubert
2022-09-11 15:29                     ` Amir Goldstein
2022-09-11 15:55                       ` Bernd Schubert
2022-09-12 13:16                   ` Vivek Goyal
2022-09-12 13:38                     ` Amir Goldstein
2022-09-12 14:35                       ` Vivek Goyal
2022-09-12 15:07                         ` Amir Goldstein
2022-09-12 19:56                           ` Vivek Goyal
2022-09-13  2:07                             ` Amir Goldstein
2025-02-19 17:58                   ` LOOKUP_HANDLE and FUSE passthrough (was: Persistent FUSE " Amir Goldstein
2025-02-20 10:26                     ` Miklos Szeredi [this message]
2025-02-20 15:51                       ` Amir Goldstein
2025-02-24 15:53                         ` Miklos Szeredi

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=CAJfpegv3ndPNZOLP2rPrVSMiomOiSJBjsBFwwrCcmfZT08PjpQ@mail.gmail.com \
    --to=miklos@szeredi.hu \
    --cc=amir73il@gmail.com \
    --cc=bernd.schubert@fastmail.fm \
    --cc=hreitz@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=vgoyal@redhat.com \
    /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;
as well as URLs for NNTP newsgroup(s).