diff options
author | Feng Shuo <steve.shuo.feng@gmail.com> | 2013-01-04 16:23:30 +0800 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-02-06 17:27:28 +0100 |
commit | 9ba76b906498d443eb811b8e88e2b92910893d13 (patch) | |
tree | 20b6ed234186b1ba0ed432e9da801185a9a782f9 /include/fuse_kernel.h | |
parent | 06b1100acabe011ce632b1a97819cde41d66d0ad (diff) | |
download | libfuse-9ba76b906498d443eb811b8e88e2b92910893d13.tar.gz |
libfuse: Add '[no_]auto_inval_data' mount option
Several caching logic changes have been made on the kernel side
to better support network-based fuse filesystems. These include
kernel side mtime checking and read path cache revalidation. The
new caching logic is enabled through the FUSE_AUTO_INVAL_DATA
init flag. Export this to the user via the '[no_]auto_inval_data'
mount option.
Signed-off-by: Feng Shuo <steve.shuo.feng@gmail.com>
Diffstat (limited to 'include/fuse_kernel.h')
-rw-r--r-- | include/fuse_kernel.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h index 0f24494..501450c 100644 --- a/include/fuse_kernel.h +++ b/include/fuse_kernel.h @@ -83,6 +83,9 @@ * * 7.19 * - add FUSE_FALLOCATE + * + * 7.20 + * - add FUSE_AUTO_INVAL_DATA */ #ifndef _LINUX_FUSE_H @@ -119,7 +122,7 @@ #define FUSE_KERNEL_VERSION 7 /** Minor version number of this interface */ -#define FUSE_KERNEL_MINOR_VERSION 19 +#define FUSE_KERNEL_MINOR_VERSION 20 /** The node ID of the root inode */ #define FUSE_ROOT_ID 1 @@ -206,6 +209,7 @@ struct fuse_file_lock { * FUSE_SPLICE_READ: kernel supports splice read on the device * FUSE_FLOCK_LOCKS: remote locking for BSD style file locks * FUSE_HAS_IOCTL_DIR: kernel supports ioctl on directories + * FUSE_AUTO_INVAL_DATA: automatically invalidate cached pages */ #define FUSE_ASYNC_READ (1 << 0) #define FUSE_POSIX_LOCKS (1 << 1) @@ -219,6 +223,7 @@ struct fuse_file_lock { #define FUSE_SPLICE_READ (1 << 9) #define FUSE_FLOCK_LOCKS (1 << 10) #define FUSE_HAS_IOCTL_DIR (1 << 11) +#define FUSE_AUTO_INVAL_DATA (1 << 12) /** * CUSE INIT request/reply flags |