mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-26 21:54:30 +08:00
add support for kernel flag FUSE_HAS_EXPIRE_ONLY
This commit is contained in:
parent
0c12204145
commit
54007eedde
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user