aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2012-07-16 15:23:48 -0400
committerMiklos Szeredi <mszeredi@suse.cz>2012-07-18 10:09:40 -0400
commit72d0d248ca8232dbd30d35b42d0d86e39b3e322b (patch)
treeb186ec7e6c19540660631fd2e169494657882b1d /include
parent84a1caf1453c3d44050bd22db958af4a7f99315c (diff)
fuse: add FUSE_AUTO_INVAL_DATA init flag
FUSE_AUTO_INVAL_DATA is provided to enable updated/auto cache invalidation logic. Signed-off-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fuse.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index 9303348965fb..e4a9d2af9aaa 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -57,6 +57,9 @@
57 * 57 *
58 * 7.19 58 * 7.19
59 * - add FUSE_FALLOCATE 59 * - add FUSE_FALLOCATE
60 *
61 * 7.20
62 * - add FUSE_AUTO_INVAL_DATA
60 */ 63 */
61 64
62#ifndef _LINUX_FUSE_H 65#ifndef _LINUX_FUSE_H
@@ -88,7 +91,7 @@
88#define FUSE_KERNEL_VERSION 7 91#define FUSE_KERNEL_VERSION 7
89 92
90/** Minor version number of this interface */ 93/** Minor version number of this interface */
91#define FUSE_KERNEL_MINOR_VERSION 19 94#define FUSE_KERNEL_MINOR_VERSION 20
92 95
93/** The node ID of the root inode */ 96/** The node ID of the root inode */
94#define FUSE_ROOT_ID 1 97#define FUSE_ROOT_ID 1
@@ -167,6 +170,7 @@ struct fuse_file_lock {
167 * FUSE_EXPORT_SUPPORT: filesystem handles lookups of "." and ".." 170 * FUSE_EXPORT_SUPPORT: filesystem handles lookups of "." and ".."
168 * FUSE_DONT_MASK: don't apply umask to file mode on create operations 171 * FUSE_DONT_MASK: don't apply umask to file mode on create operations
169 * FUSE_FLOCK_LOCKS: remote locking for BSD style file locks 172 * FUSE_FLOCK_LOCKS: remote locking for BSD style file locks
173 * FUSE_AUTO_INVAL_DATA: automatically invalidate cached pages
170 */ 174 */
171#define FUSE_ASYNC_READ (1 << 0) 175#define FUSE_ASYNC_READ (1 << 0)
172#define FUSE_POSIX_LOCKS (1 << 1) 176#define FUSE_POSIX_LOCKS (1 << 1)
@@ -176,6 +180,7 @@ struct fuse_file_lock {
176#define FUSE_BIG_WRITES (1 << 5) 180#define FUSE_BIG_WRITES (1 << 5)
177#define FUSE_DONT_MASK (1 << 6) 181#define FUSE_DONT_MASK (1 << 6)
178#define FUSE_FLOCK_LOCKS (1 << 10) 182#define FUSE_FLOCK_LOCKS (1 << 10)
183#define FUSE_AUTO_INVAL_DATA (1 << 12)
179 184
180/** 185/**
181 * CUSE INIT request/reply flags 186 * CUSE INIT request/reply flags