From 34a7ad5e9d0f89f16ca2a4929dd96ebfe7595111 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Mon, 11 Apr 2022 20:39:41 +0200 Subject: Set FUSE_INIT_EXT in fuse_init_out::flags It is better to tell the kernel that libfuse knows about the 64 bit flag extension. --- lib/fuse_lowlevel.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 1d75724..e5de2a5 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -2106,10 +2106,13 @@ void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) if (se->conn.want & FUSE_CAP_EXPLICIT_INVAL_DATA) outargflags |= FUSE_EXPLICIT_INVAL_DATA; + if (inargflags & FUSE_INIT_EXT) { + outargflags |= FUSE_INIT_EXT; + outarg.flags2 = outargflags >> 32; + } + outarg.flags = outargflags; - if (inargflags & FUSE_INIT_EXT) - outarg.flags2 = outargflags >> 32; outarg.max_readahead = se->conn.max_readahead; outarg.max_write = se->conn.max_write; if (se->conn.proto_minor >= 13) { -- cgit v1.2.1