On Mon, 20 Jul 2026 at 05:45, John Groves <[email protected]> wrote:
> + /*
> + * The fmap size is not known in advance. Start with a modest buffer
> and,
> + * if the server reports (via the returned header's fmap_size) that
> the
> + * whole fmap did not fit, reallocate exactly that size and retry
> once.
> + * The server learns our buffer size from the request's
> + * fuse_getxattr_in.size (GETXATTR-style size probe).
No need to retry. I'll post a patch to dynamically allocate the reply
buffer (already posted as part of fusex).
> + */
> + for (attempt = 0; ; attempt++) {
> + struct fuse_getxattr_in in = { .size = bufsize };
> + struct fuse_famfs_fmap_header *fmh;
This struct isn't defined until the next patch.
Thanks,
Miklos