Re: [PATCH v3 2/3] fs: fuse: add backing_files control file
From: Miklos Szeredi
Date: Fri May 09 2025 - 11:17:18 EST
On Fri, 9 May 2025 at 17:11, Chen Linxuan <chenlinxuan@xxxxxxxxxxxxx> wrote:
>
> On Fri, May 9, 2025 at 10:59 PM Miklos Szeredi <miklos@xxxxxxxxxx> wrote:
>
> > And that has limitations, since fdinfo lacks a hierarchy. E.g.
> > recursively retrieving "hidden files" info is impractical.
>
> What does "recursively" refer to in this context?
> I am not entirely sure what kind of situation it implies.
> Do you mean, for example, when a fixed file is a FUSE fd and it has a
> backing file?
Yeah. I don't see any practical relevance today, but allowing to
retrieve any attribute of these hidden files (fdinfo and hidden files
included) is a good thing that the flat nature of the current fdinfo
inteface makes difficult.
I'd argue that many current uses of fdinfo could be enabled with the
listxattr/getxattr inteface and would improve usablility (no need to
parse the fdinfo file to skip unneeded info).
Thanks,
Miklos
>
> Thanks,
> Chen Linxuan