diff options
Diffstat (limited to 'include/linux/fuse.h')
| -rw-r--r-- | include/linux/fuse.h | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 3e2925a34bf0..c3c578e09833 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
| @@ -34,6 +34,13 @@ | |||
| 34 | * 7.13 | 34 | * 7.13 |
| 35 | * - make max number of background requests and congestion threshold | 35 | * - make max number of background requests and congestion threshold |
| 36 | * tunables | 36 | * tunables |
| 37 | * | ||
| 38 | * 7.14 | ||
| 39 | * - add splice support to fuse device | ||
| 40 | * | ||
| 41 | * 7.15 | ||
| 42 | * - add store notify | ||
| 43 | * - add retrieve notify | ||
| 37 | */ | 44 | */ |
| 38 | 45 | ||
| 39 | #ifndef _LINUX_FUSE_H | 46 | #ifndef _LINUX_FUSE_H |
| @@ -65,7 +72,7 @@ | |||
| 65 | #define FUSE_KERNEL_VERSION 7 | 72 | #define FUSE_KERNEL_VERSION 7 |
| 66 | 73 | ||
| 67 | /** Minor version number of this interface */ | 74 | /** Minor version number of this interface */ |
| 68 | #define FUSE_KERNEL_MINOR_VERSION 13 | 75 | #define FUSE_KERNEL_MINOR_VERSION 15 |
| 69 | 76 | ||
| 70 | /** The node ID of the root inode */ | 77 | /** The node ID of the root inode */ |
| 71 | #define FUSE_ROOT_ID 1 | 78 | #define FUSE_ROOT_ID 1 |
| @@ -248,6 +255,7 @@ enum fuse_opcode { | |||
| 248 | FUSE_DESTROY = 38, | 255 | FUSE_DESTROY = 38, |
| 249 | FUSE_IOCTL = 39, | 256 | FUSE_IOCTL = 39, |
| 250 | FUSE_POLL = 40, | 257 | FUSE_POLL = 40, |
| 258 | FUSE_NOTIFY_REPLY = 41, | ||
| 251 | 259 | ||
| 252 | /* CUSE specific operations */ | 260 | /* CUSE specific operations */ |
| 253 | CUSE_INIT = 4096, | 261 | CUSE_INIT = 4096, |
| @@ -257,6 +265,8 @@ enum fuse_notify_code { | |||
| 257 | FUSE_NOTIFY_POLL = 1, | 265 | FUSE_NOTIFY_POLL = 1, |
| 258 | FUSE_NOTIFY_INVAL_INODE = 2, | 266 | FUSE_NOTIFY_INVAL_INODE = 2, |
| 259 | FUSE_NOTIFY_INVAL_ENTRY = 3, | 267 | FUSE_NOTIFY_INVAL_ENTRY = 3, |
| 268 | FUSE_NOTIFY_STORE = 4, | ||
| 269 | FUSE_NOTIFY_RETRIEVE = 5, | ||
| 260 | FUSE_NOTIFY_CODE_MAX, | 270 | FUSE_NOTIFY_CODE_MAX, |
| 261 | }; | 271 | }; |
| 262 | 272 | ||
| @@ -565,4 +575,29 @@ struct fuse_notify_inval_entry_out { | |||
| 565 | __u32 padding; | 575 | __u32 padding; |
| 566 | }; | 576 | }; |
| 567 | 577 | ||
| 578 | struct fuse_notify_store_out { | ||
| 579 | __u64 nodeid; | ||
| 580 | __u64 offset; | ||
| 581 | __u32 size; | ||
| 582 | __u32 padding; | ||
| 583 | }; | ||
| 584 | |||
| 585 | struct fuse_notify_retrieve_out { | ||
| 586 | __u64 notify_unique; | ||
| 587 | __u64 nodeid; | ||
| 588 | __u64 offset; | ||
| 589 | __u32 size; | ||
| 590 | __u32 padding; | ||
| 591 | }; | ||
| 592 | |||
| 593 | /* Matches the size of fuse_write_in */ | ||
| 594 | struct fuse_notify_retrieve_in { | ||
| 595 | __u64 dummy1; | ||
| 596 | __u64 offset; | ||
| 597 | __u32 size; | ||
| 598 | __u32 dummy2; | ||
| 599 | __u64 dummy3; | ||
| 600 | __u64 dummy4; | ||
| 601 | }; | ||
| 602 | |||
| 568 | #endif /* _LINUX_FUSE_H */ | 603 | #endif /* _LINUX_FUSE_H */ |
