diff options
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r-- | include/linux/fuse.h | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 88e0eb596919..c3c578e09833 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
@@ -37,6 +37,10 @@ | |||
37 | * | 37 | * |
38 | * 7.14 | 38 | * 7.14 |
39 | * - add splice support to fuse device | 39 | * - add splice support to fuse device |
40 | * | ||
41 | * 7.15 | ||
42 | * - add store notify | ||
43 | * - add retrieve notify | ||
40 | */ | 44 | */ |
41 | 45 | ||
42 | #ifndef _LINUX_FUSE_H | 46 | #ifndef _LINUX_FUSE_H |
@@ -68,7 +72,7 @@ | |||
68 | #define FUSE_KERNEL_VERSION 7 | 72 | #define FUSE_KERNEL_VERSION 7 |
69 | 73 | ||
70 | /** Minor version number of this interface */ | 74 | /** Minor version number of this interface */ |
71 | #define FUSE_KERNEL_MINOR_VERSION 14 | 75 | #define FUSE_KERNEL_MINOR_VERSION 15 |
72 | 76 | ||
73 | /** The node ID of the root inode */ | 77 | /** The node ID of the root inode */ |
74 | #define FUSE_ROOT_ID 1 | 78 | #define FUSE_ROOT_ID 1 |
@@ -251,6 +255,7 @@ enum fuse_opcode { | |||
251 | FUSE_DESTROY = 38, | 255 | FUSE_DESTROY = 38, |
252 | FUSE_IOCTL = 39, | 256 | FUSE_IOCTL = 39, |
253 | FUSE_POLL = 40, | 257 | FUSE_POLL = 40, |
258 | FUSE_NOTIFY_REPLY = 41, | ||
254 | 259 | ||
255 | /* CUSE specific operations */ | 260 | /* CUSE specific operations */ |
256 | CUSE_INIT = 4096, | 261 | CUSE_INIT = 4096, |
@@ -260,6 +265,8 @@ enum fuse_notify_code { | |||
260 | FUSE_NOTIFY_POLL = 1, | 265 | FUSE_NOTIFY_POLL = 1, |
261 | FUSE_NOTIFY_INVAL_INODE = 2, | 266 | FUSE_NOTIFY_INVAL_INODE = 2, |
262 | FUSE_NOTIFY_INVAL_ENTRY = 3, | 267 | FUSE_NOTIFY_INVAL_ENTRY = 3, |
268 | FUSE_NOTIFY_STORE = 4, | ||
269 | FUSE_NOTIFY_RETRIEVE = 5, | ||
263 | FUSE_NOTIFY_CODE_MAX, | 270 | FUSE_NOTIFY_CODE_MAX, |
264 | }; | 271 | }; |
265 | 272 | ||
@@ -568,4 +575,29 @@ struct fuse_notify_inval_entry_out { | |||
568 | __u32 padding; | 575 | __u32 padding; |
569 | }; | 576 | }; |
570 | 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 | |||
571 | #endif /* _LINUX_FUSE_H */ | 603 | #endif /* _LINUX_FUSE_H */ |