aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-12-06 23:35:51 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:32 -0500
commitb2d2272fae1e1df26ec8f93a6d5baea891dcce37 (patch)
tree468c5bdf5a7d5b604337e582ee8eed62f098e832 /include/linux/fuse.h
parentd809161402e9f99aefe8848c4e701597ac367269 (diff)
[PATCH] fuse: add bmap support
Add support for the BMAP operation for block device based filesystems. This is needed to support swap-files and lilo. 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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index 76336327a941..162a754f4db7 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -132,6 +132,7 @@ enum fuse_opcode {
132 FUSE_ACCESS = 34, 132 FUSE_ACCESS = 34,
133 FUSE_CREATE = 35, 133 FUSE_CREATE = 35,
134 FUSE_INTERRUPT = 36, 134 FUSE_INTERRUPT = 36,
135 FUSE_BMAP = 37,
135}; 136};
136 137
137/* The read buffer is required to be at least 8k, but may be much larger */ 138/* The read buffer is required to be at least 8k, but may be much larger */
@@ -302,6 +303,16 @@ struct fuse_interrupt_in {
302 __u64 unique; 303 __u64 unique;
303}; 304};
304 305
306struct fuse_bmap_in {
307 __u64 block;
308 __u32 blocksize;
309 __u32 padding;
310};
311
312struct fuse_bmap_out {
313 __u64 block;
314};
315
305struct fuse_in_header { 316struct fuse_in_header {
306 __u32 len; 317 __u32 len;
307 __u32 opcode; 318 __u32 opcode;