diff options
author | HereThereBeDragons <HereThereBeDragons@users.noreply.github.com> | 2023-12-06 15:37:38 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2024-01-29 08:43:58 +0000 |
commit | 54007eeddeae22523b720e4a426081fbdecb6bdf (patch) | |
tree | 3a7dacb38a60862fe80185aafb306445dc13c26b /lib/fuse_lowlevel.c | |
parent | 0c12204145d43ad4683136379a130385ef16d166 (diff) | |
download | libfuse-54007eeddeae22523b720e4a426081fbdecb6bdf.tar.gz |
add support for kernel flag FUSE_HAS_EXPIRE_ONLY
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r-- | lib/fuse_lowlevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index def1918..d8c0cd1 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -2021,7 +2021,7 @@ void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) } if (inargflags & FUSE_DIRECT_IO_ALLOW_MMAP) se->conn.capable |= FUSE_CAP_DIRECT_IO_ALLOW_MMAP; - if (arg->minor >= 38) + if (arg->minor >= 38 || (inargflags & FUSE_HAS_EXPIRE_ONLY)) se->conn.capable |= FUSE_CAP_EXPIRE_ONLY; } else { se->conn.max_readahead = 0; |