diff options
| author | Maxim Patlasov <MPatlasov@parallels.com> | 2014-04-28 08:19:24 -0400 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 08:19:24 -0400 |
| commit | ab9e13f7c771b511d8f71666e83cb27bcc635b98 (patch) | |
| tree | bc213ba010921446b018d89a72c317a6eb51c32f /include/uapi/linux | |
| parent | e27c9d3877a0d0479711a55f5cdd7ee91442da53 (diff) | |
fuse: allow ctime flushing to userspace
The patch extends fuse_setattr_in, and extends the flush procedure
(fuse_flush_times()) called on ->write_inode() to send the ctime as well as
mtime.
Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/fuse.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index d1b4e2ca9672..e86a21acef75 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h | |||
| @@ -98,6 +98,8 @@ | |||
| 98 | * - add FUSE_WRITEBACK_CACHE | 98 | * - add FUSE_WRITEBACK_CACHE |
| 99 | * - add time_gran to fuse_init_out | 99 | * - add time_gran to fuse_init_out |
| 100 | * - add reserved space to fuse_init_out | 100 | * - add reserved space to fuse_init_out |
| 101 | * - add FATTR_CTIME | ||
| 102 | * - add ctime and ctimensec to fuse_setattr_in | ||
| 101 | */ | 103 | */ |
| 102 | 104 | ||
| 103 | #ifndef _LINUX_FUSE_H | 105 | #ifndef _LINUX_FUSE_H |
| @@ -193,6 +195,7 @@ struct fuse_file_lock { | |||
| 193 | #define FATTR_ATIME_NOW (1 << 7) | 195 | #define FATTR_ATIME_NOW (1 << 7) |
| 194 | #define FATTR_MTIME_NOW (1 << 8) | 196 | #define FATTR_MTIME_NOW (1 << 8) |
| 195 | #define FATTR_LOCKOWNER (1 << 9) | 197 | #define FATTR_LOCKOWNER (1 << 9) |
| 198 | #define FATTR_CTIME (1 << 10) | ||
| 196 | 199 | ||
| 197 | /** | 200 | /** |
| 198 | * Flags returned by the OPEN request | 201 | * Flags returned by the OPEN request |
| @@ -440,10 +443,10 @@ struct fuse_setattr_in { | |||
| 440 | uint64_t lock_owner; | 443 | uint64_t lock_owner; |
| 441 | uint64_t atime; | 444 | uint64_t atime; |
| 442 | uint64_t mtime; | 445 | uint64_t mtime; |
| 443 | uint64_t unused2; | 446 | uint64_t ctime; |
| 444 | uint32_t atimensec; | 447 | uint32_t atimensec; |
| 445 | uint32_t mtimensec; | 448 | uint32_t mtimensec; |
| 446 | uint32_t unused3; | 449 | uint32_t ctimensec; |
| 447 | uint32_t mode; | 450 | uint32_t mode; |
| 448 | uint32_t unused4; | 451 | uint32_t unused4; |
| 449 | uint32_t uid; | 452 | uint32_t uid; |
