aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-02 01:07:56 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-02 01:07:56 +0000
commit8255e58b3695bb9141a6ca23b21f8c8869d9c279 (patch)
treeb06a5e74bcc74f5726f2e0400e6e54ec1df48ea0
parenta28cf034833d9aa7dae8a324460c45cdf0c4ee61 (diff)
parenteda605439118ddf3cba4a2216b1d53b21d630b8e (diff)
downloadlibfuse-8255e58b3695bb9141a6ca23b21f8c8869d9c279.tar.gz
Snap for 11038355 from eda605439118ddf3cba4a2216b1d53b21d630b8e to 24Q1-release
Change-Id: I86fc785f4415e48bc99f42664afc99c2923cc35d
-rw-r--r--lib/fuse_lowlevel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 4c75e3b..5ebca0d 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -2276,6 +2276,13 @@ void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
outarg.flags |= FUSE_EXPLICIT_INVAL_DATA;
if (se->conn.want & FUSE_CAP_SETXATTR_EXT)
outarg.flags |= FUSE_SETXATTR_EXT;
+
+ if (extended_flags) {
+ if (arg->flags & FUSE_INIT_EXT) {
+ outarg.flags |= FUSE_INIT_EXT;
+ }
+ }
+
outarg.max_readahead = se->conn.max_readahead;
outarg.max_write = se->conn.max_write;
if (se->conn.proto_minor >= 13) {