linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recommended version handshake for FUSE clients
@ 2024-08-26 12:22 Florian Weimer
  2024-08-26 12:26 ` Miklos Szeredi
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2024-08-26 12:22 UTC (permalink / raw)
  To: fuse-devel, linux-fsdevel, linux-api, linux-kernel

I cannot use libfuse, so I'm writing my own mini-wrapper directly on top
of the kernel interface.  For the major version handshake, I understand
that I need to reply with version 7 if a later major version is
required.  But what to do about the minor version?

Should I use the minimum version that is expected to work (because there
have not been any struct layout changes since)?  I think this could end
up problematic if some struct sizes have grown between the known-good
minimum version and the <linux/fuse.h> version, something that a future
<linux/fuse.h> version might bring.

Or should I just send back FUSE_KERNEL_MINOR_VERSION from the system
version of <linux/fuse.h>?  I think this assumes that merely increasing
the minor version does not result in behavioral changes (such as
additonal FUSE events being generated that the current code knows
nothing about).

The code only has to run on the system that it was compiled on and
possibly newer kernels.  Going back to older kernels is not needed.  But
I also expect people using a wide range of kernel header versions to
compile this code.

Or perhaps I should bundle some older version of <linux/fuse.h> with my
sources?

Thanks,
Florian


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Recommended version handshake for FUSE clients
  2024-08-26 12:22 Recommended version handshake for FUSE clients Florian Weimer
@ 2024-08-26 12:26 ` Miklos Szeredi
  0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2024-08-26 12:26 UTC (permalink / raw)
  To: Florian Weimer; +Cc: fuse-devel, linux-fsdevel, linux-api, linux-kernel

On Mon, 26 Aug 2024 at 14:22, Florian Weimer <fweimer@redhat.com> wrote:

> Or perhaps I should bundle some older version of <linux/fuse.h> with my
> sources?

Bundling the fuse header with your sources is the only sane thing to
do.  Libfuse does this, and so should you.

Thanks,
Miklos

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-26 12:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-26 12:22 Recommended version handshake for FUSE clients Florian Weimer
2024-08-26 12:26 ` Miklos Szeredi

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).