diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-05 13:11:11 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-05 13:11:11 -0400 |
| commit | f9ba7179ce91fb77b2adf6eaab3676ab3a1f5a15 (patch) | |
| tree | 2d02e7a4fd78083b78749d0c9c7466f0eb8e6f97 /include/linux | |
| parent | 0b3e9f3f21c42d064f5f4088df4088e3d55755eb (diff) | |
| parent | 203627bbc90377c509e32450c67c5d957ba2d989 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse
Pull fuse updates from Miklos Szeredi.
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
fuse: fix blksize calculation
fuse: fix stat call on 32 bit platforms
fuse: optimize fallocate on permanent failure
fuse: add FALLOCATE operation
fuse: Convert to kstrtoul_from_user
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fuse.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 8f2ab8fef929..9303348965fb 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
| @@ -54,6 +54,9 @@ | |||
| 54 | * 7.18 | 54 | * 7.18 |
| 55 | * - add FUSE_IOCTL_DIR flag | 55 | * - add FUSE_IOCTL_DIR flag |
| 56 | * - add FUSE_NOTIFY_DELETE | 56 | * - add FUSE_NOTIFY_DELETE |
| 57 | * | ||
| 58 | * 7.19 | ||
| 59 | * - add FUSE_FALLOCATE | ||
| 57 | */ | 60 | */ |
| 58 | 61 | ||
| 59 | #ifndef _LINUX_FUSE_H | 62 | #ifndef _LINUX_FUSE_H |
| @@ -85,7 +88,7 @@ | |||
| 85 | #define FUSE_KERNEL_VERSION 7 | 88 | #define FUSE_KERNEL_VERSION 7 |
| 86 | 89 | ||
| 87 | /** Minor version number of this interface */ | 90 | /** Minor version number of this interface */ |
| 88 | #define FUSE_KERNEL_MINOR_VERSION 18 | 91 | #define FUSE_KERNEL_MINOR_VERSION 19 |
| 89 | 92 | ||
| 90 | /** The node ID of the root inode */ | 93 | /** The node ID of the root inode */ |
| 91 | #define FUSE_ROOT_ID 1 | 94 | #define FUSE_ROOT_ID 1 |
| @@ -278,6 +281,7 @@ enum fuse_opcode { | |||
| 278 | FUSE_POLL = 40, | 281 | FUSE_POLL = 40, |
| 279 | FUSE_NOTIFY_REPLY = 41, | 282 | FUSE_NOTIFY_REPLY = 41, |
| 280 | FUSE_BATCH_FORGET = 42, | 283 | FUSE_BATCH_FORGET = 42, |
| 284 | FUSE_FALLOCATE = 43, | ||
| 281 | 285 | ||
| 282 | /* CUSE specific operations */ | 286 | /* CUSE specific operations */ |
| 283 | CUSE_INIT = 4096, | 287 | CUSE_INIT = 4096, |
| @@ -571,6 +575,14 @@ struct fuse_notify_poll_wakeup_out { | |||
| 571 | __u64 kh; | 575 | __u64 kh; |
| 572 | }; | 576 | }; |
| 573 | 577 | ||
| 578 | struct fuse_fallocate_in { | ||
| 579 | __u64 fh; | ||
| 580 | __u64 offset; | ||
| 581 | __u64 length; | ||
| 582 | __u32 mode; | ||
| 583 | __u32 padding; | ||
| 584 | }; | ||
| 585 | |||
| 574 | struct fuse_in_header { | 586 | struct fuse_in_header { |
| 575 | __u32 len; | 587 | __u32 len; |
| 576 | __u32 opcode; | 588 | __u32 opcode; |
