aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2021-10-24 14:01:23 +0300
committerAmir Goldstein <amir73il@gmail.com>2022-01-03 14:55:34 +0200
commit1b498ac9b341e086562f54cc49bf035e19a94e1d (patch)
tree51745ff21733bd4a3dc3328df272f57404b60f4b /include/fuse_common.h
parent48ae2e72b39b6a31cb2194f6f11786b7ca06aac6 (diff)
downloadlibfuse-1b498ac9b341e086562f54cc49bf035e19a94e1d.tar.gz
Add support for FOPEN_NOFLUSH flag
Allow requesting from kernel to avoid flush on close at file open time. If kernel does not support FOPEN_NOFLUSH flag, the request will be ignored. For passthrough_hp example, request to avoid flush on close when writeback cache is disabled and file is opened O_RDONLY. Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index ea4bdb0..d7481be 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -83,8 +83,12 @@ struct fuse_file_info {
nothing when set by open()). */
unsigned int cache_readdir : 1;
+ /** Can be filled in by open, to indicate that flush is not needed
+ on close. */
+ unsigned int noflush : 1;
+
/** Padding. Reserved for future use*/
- unsigned int padding : 25;
+ unsigned int padding : 24;
unsigned int padding2 : 32;
/** File handle id. May be filled in by filesystem in create,