Re: [RFC PATCH v2 4/6] fuse: implementation of the FUSE_LOOKUP_HANDLE operation

From: Miklos Szeredi

Date: Fri Jan 09 2026 - 10:24:14 EST


On Fri, 9 Jan 2026 at 15:45, Luis Henriques <luis@xxxxxxxxxx> wrote:

> struct fuse_entry_handle_out {
> uint64_t nodeid;
> uint64_t generation;
> uint64_t entry_valid;
> struct fuse_file_handle fh;
> }

I'd do it this way:

struct fuse_entry2_out {
uint64_t nodeid;
uint64_t generation;
uint64_t entry_valid;
uint32_t entry_valid_nsec;
uint32_t flags;
uint64_t spare;
};

and the file handle would be placed in out_args[1].

> I'll then need to have a look at the compound requests closely. (I had
> previously skimmed through the patches that add open+getattr but didn't
> gone too deep into it.)

It should work as two separate requests, just not as optimal.

> And then the extension header would be created similarly to what's being
> done for FUSE_EXT_GROUPS, using the same helper extend_arg(). That way, I
> think we would have: headers - payload - extensions.

Right.

Thanks,
Miklos