aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_kernel.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2014-07-15 17:11:08 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2014-07-15 17:36:43 +0200
commit57a93b3dacbf9259178dacff5d2fbb25427f3b86 (patch)
tree09b3436bcec7b391ccc810c3d905b9b3a0158983 /include/fuse_kernel.h
parent52f46cfa682e284835807bcd60086a71b4365e91 (diff)
downloadlibfuse-57a93b3dacbf9259178dacff5d2fbb25427f3b86.tar.gz
libfuse: add "time_gran" option
This allows the filesystem to specify the time granularity it supports when the kernel is responsible for updating times ("writeback_cache" option).
Diffstat (limited to 'include/fuse_kernel.h')
-rw-r--r--include/fuse_kernel.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
index 7974721..d1b4e2c 100644
--- a/include/fuse_kernel.h
+++ b/include/fuse_kernel.h
@@ -96,6 +96,8 @@
*
* 7.23
* - add FUSE_WRITEBACK_CACHE
+ * - add time_gran to fuse_init_out
+ * - add reserved space to fuse_init_out
*/
#ifndef _LINUX_FUSE_H
@@ -131,7 +133,7 @@
#define FUSE_KERNEL_VERSION 7
/** Minor version number of this interface */
-#define FUSE_KERNEL_MINOR_VERSION 22
+#define FUSE_KERNEL_MINOR_VERSION 23
/** The node ID of the root inode */
#define FUSE_ROOT_ID 1
@@ -559,6 +561,9 @@ struct fuse_init_in {
uint32_t flags;
};
+#define FUSE_COMPAT_INIT_OUT_SIZE 8
+#define FUSE_COMPAT_22_INIT_OUT_SIZE 24
+
struct fuse_init_out {
uint32_t major;
uint32_t minor;
@@ -567,6 +572,8 @@ struct fuse_init_out {
uint16_t max_background;
uint16_t congestion_threshold;
uint32_t max_write;
+ uint32_t time_gran;
+ uint32_t unused[9];
};
#define CUSE_INIT_INFO_MAX 4096