aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_kernel.h
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2014-07-15 17:41:02 +0200
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2014-07-15 17:42:44 +0200
commit978d10a42b2cfccf6bfc4df1cfad480ac3bbcb3d (patch)
tree5485f445bcf0cbf83729929ba62e4bbd1b6cc70e /include/fuse_kernel.h
parent57a93b3dacbf9259178dacff5d2fbb25427f3b86 (diff)
libfuse: allow setting ctime in ->setattr()
Diffstat (limited to 'include/fuse_kernel.h')
-rw-r--r--include/fuse_kernel.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
index d1b4e2c..e86a21a 100644
--- a/include/fuse_kernel.h
+++ b/include/fuse_kernel.h
@@ -98,6 +98,8 @@
* - add FUSE_WRITEBACK_CACHE
* - add time_gran to fuse_init_out
* - add reserved space to fuse_init_out
+ * - add FATTR_CTIME
+ * - add ctime and ctimensec to fuse_setattr_in
*/
#ifndef _LINUX_FUSE_H
@@ -193,6 +195,7 @@ struct fuse_file_lock {
#define FATTR_ATIME_NOW (1 << 7)
#define FATTR_MTIME_NOW (1 << 8)
#define FATTR_LOCKOWNER (1 << 9)
+#define FATTR_CTIME (1 << 10)
/**
* Flags returned by the OPEN request
@@ -440,10 +443,10 @@ struct fuse_setattr_in {
uint64_t lock_owner;
uint64_t atime;
uint64_t mtime;
- uint64_t unused2;
+ uint64_t ctime;
uint32_t atimensec;
uint32_t mtimensec;
- uint32_t unused3;
+ uint32_t ctimensec;
uint32_t mode;
uint32_t unused4;
uint32_t uid;