diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-01-06 03:19:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:56 -0500 |
commit | 3ec870d524c9150add120475c8ddcfa50574f98e (patch) | |
tree | 62918ff93aac09bc13d4730208a8c8bc1fec4e40 /include/linux/fuse.h | |
parent | 1d3d752b471d2a3a1d5e4fe177e5e7d52abb4e4c (diff) |
[PATCH] fuse: make maximum write data configurable
Make the maximum size of write data configurable by the filesystem. The
previous fixed 4096 limit only worked on architectures where the page size is
less or equal to this. This change make writing work on other architectures
too, and also lets the filesystem receive bigger write requests in direct_io
mode.
Normal writes which go through the page cache are still limited to a page
sized chunk per request.
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r-- | include/linux/fuse.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 8f64cc2205b0..528959c52f1b 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 4 | 17 | #define FUSE_KERNEL_MINOR_VERSION 5 |
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 |
@@ -244,11 +244,18 @@ struct fuse_access_in { | |||
244 | __u32 padding; | 244 | __u32 padding; |
245 | }; | 245 | }; |
246 | 246 | ||
247 | struct fuse_init_in_out { | 247 | struct fuse_init_in { |
248 | __u32 major; | 248 | __u32 major; |
249 | __u32 minor; | 249 | __u32 minor; |
250 | }; | 250 | }; |
251 | 251 | ||
252 | struct fuse_init_out { | ||
253 | __u32 major; | ||
254 | __u32 minor; | ||
255 | __u32 unused[3]; | ||
256 | __u32 max_write; | ||
257 | }; | ||
258 | |||
252 | struct fuse_in_header { | 259 | struct fuse_in_header { |
253 | __u32 len; | 260 | __u32 len; |
254 | __u32 opcode; | 261 | __u32 opcode; |