diff options
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r-- | include/linux/fuse.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index f98854c2abd7..b76b558b03d4 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #define FUSE_KERNEL_VERSION 7 | 14 | #define FUSE_KERNEL_VERSION 7 |
15 | 15 | ||
16 | /** Minor version number of this interface */ | 16 | /** Minor version number of this interface */ |
17 | #define FUSE_KERNEL_MINOR_VERSION 2 | 17 | #define FUSE_KERNEL_MINOR_VERSION 3 |
18 | 18 | ||
19 | /** The node ID of the root inode */ | 19 | /** The node ID of the root inode */ |
20 | #define FUSE_ROOT_ID 1 | 20 | #define FUSE_ROOT_ID 1 |
@@ -61,6 +61,7 @@ struct fuse_kstatfs { | |||
61 | #define FATTR_SIZE (1 << 3) | 61 | #define FATTR_SIZE (1 << 3) |
62 | #define FATTR_ATIME (1 << 4) | 62 | #define FATTR_ATIME (1 << 4) |
63 | #define FATTR_MTIME (1 << 5) | 63 | #define FATTR_MTIME (1 << 5) |
64 | #define FATTR_FH (1 << 6) | ||
64 | 65 | ||
65 | /** | 66 | /** |
66 | * Flags returned by the OPEN request | 67 | * Flags returned by the OPEN request |
@@ -99,7 +100,9 @@ enum fuse_opcode { | |||
99 | FUSE_OPENDIR = 27, | 100 | FUSE_OPENDIR = 27, |
100 | FUSE_READDIR = 28, | 101 | FUSE_READDIR = 28, |
101 | FUSE_RELEASEDIR = 29, | 102 | FUSE_RELEASEDIR = 29, |
102 | FUSE_FSYNCDIR = 30 | 103 | FUSE_FSYNCDIR = 30, |
104 | FUSE_ACCESS = 34, | ||
105 | FUSE_CREATE = 35 | ||
103 | }; | 106 | }; |
104 | 107 | ||
105 | /* Conservative buffer size for the client */ | 108 | /* Conservative buffer size for the client */ |
@@ -152,12 +155,25 @@ struct fuse_link_in { | |||
152 | struct fuse_setattr_in { | 155 | struct fuse_setattr_in { |
153 | __u32 valid; | 156 | __u32 valid; |
154 | __u32 padding; | 157 | __u32 padding; |
155 | struct fuse_attr attr; | 158 | __u64 fh; |
159 | __u64 size; | ||
160 | __u64 unused1; | ||
161 | __u64 atime; | ||
162 | __u64 mtime; | ||
163 | __u64 unused2; | ||
164 | __u32 atimensec; | ||
165 | __u32 mtimensec; | ||
166 | __u32 unused3; | ||
167 | __u32 mode; | ||
168 | __u32 unused4; | ||
169 | __u32 uid; | ||
170 | __u32 gid; | ||
171 | __u32 unused5; | ||
156 | }; | 172 | }; |
157 | 173 | ||
158 | struct fuse_open_in { | 174 | struct fuse_open_in { |
159 | __u32 flags; | 175 | __u32 flags; |
160 | __u32 padding; | 176 | __u32 mode; |
161 | }; | 177 | }; |
162 | 178 | ||
163 | struct fuse_open_out { | 179 | struct fuse_open_out { |
@@ -222,6 +238,11 @@ struct fuse_getxattr_out { | |||
222 | __u32 padding; | 238 | __u32 padding; |
223 | }; | 239 | }; |
224 | 240 | ||
241 | struct fuse_access_in { | ||
242 | __u32 mask; | ||
243 | __u32 padding; | ||
244 | }; | ||
245 | |||
225 | struct fuse_init_in_out { | 246 | struct fuse_init_in_out { |
226 | __u32 major; | 247 | __u32 major; |
227 | __u32 minor; | 248 | __u32 minor; |