diff options
author | Albert Chen <hselin.chen@gmail.com> | 2019-11-27 01:36:30 -0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-11-27 09:36:30 +0000 |
commit | ada08d50a647adb37c77f2106e7adc0db6ab93d5 (patch) | |
tree | c577291626b68ff962c6cc65820435861f5f8a56 /include | |
parent | 4520a97286e53977d15825111365d46b99d5a836 (diff) | |
download | libfuse-ada08d50a647adb37c77f2106e7adc0db6ab93d5.tar.gz |
Added support for FUSE_EXPLICIT_INVAL_DATA to enable (#474)
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse_common.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h index 2d686b2..77d4bfe 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -359,6 +359,29 @@ struct fuse_loop_config { #define FUSE_CAP_NO_OPENDIR_SUPPORT (1 << 24) /** + * Indicates support for invalidating cached pages only on explicit request. + * + * If this flag is set in the `capable` field of the `fuse_conn_info` structure, + * then the FUSE kernel module supports invalidating cached pages only on + * explicit request by the filesystem through fuse_lowlevel_notify_inval_inode() + * or fuse_invalidate_path(). + * + * By setting this flag in the `want` field of the `fuse_conn_info` structure, + * the filesystem is responsible for invalidating cached pages through explicit + * requests to the kernel. + * + * Note that setting this flag does not prevent the cached pages from being + * flushed by OS itself and/or through user actions. + * + * Note that if both FUSE_CAP_EXPLICIT_INVAL_DATA and FUSE_CAP_AUTO_INVAL_DATA + * are set in the `capable` field of the `fuse_conn_info` structure then + * FUSE_CAP_AUTO_INVAL_DATA takes precedence. + * + * This feature is disabled by default. + */ +#define FUSE_CAP_EXPLICIT_INVAL_DATA (1 << 25) + +/** * Ioctl flags * * FUSE_IOCTL_COMPAT: 32bit compat ioctl on 64bit machine |