fuse: extend init flags
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 25 Nov 2021 13:05:18 +0000 (14:05 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 25 Nov 2021 13:05:18 +0000 (14:05 +0100)
commit53db28933e952a8536b002ba8b8c9443ccc0e939
tree7d90eb5975d8e842ffc234be9efae902e84095e2
parent473441720c8616dfaf4451f9c7ea14f0eb5e5d65
fuse: extend init flags

FUSE_INIT flags are close to running out, so add another 32bits worth of
space.

Add FUSE_INIT_EXT flag to the old flags field in fuse_init_in.  If this
flag is set, then fuse_init_in is extended by 48bytes, in which a flags_hi
field is allocated to contain the high 32bits of the flags.

A flags_hi field is also added to fuse_init_out, allocated out of the
remaining unused fields.

Known userspace implementations of the fuse protocol have been checked to
accept the extended FUSE_INIT request, but this might cause problems with
other implementations.  If that happens to be the case, the protocol
negotiation will have to be extended with an extra initialization request
roundtrip.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/inode.c
include/uapi/linux/fuse.h