|
216 | 216 | * - add max_stack_depth to fuse_init_out, add FUSE_PASSTHROUGH init flag
|
217 | 217 | * - add backing_id to fuse_open_out, add FOPEN_PASSTHROUGH open flag
|
218 | 218 | * - add FUSE_NO_EXPORT_SUPPORT init flag
|
219 |
| - * - add FUSE_NOTIFY_RESEND |
| 219 | + * - add FUSE_NOTIFY_RESEND, add FUSE_HAS_RESEND init flag |
220 | 220 | */
|
221 | 221 |
|
222 | 222 | #ifndef _LINUX_FUSE_H
|
@@ -419,6 +419,8 @@ struct fuse_file_lock {
|
419 | 419 | * FUSE_HAS_EXPIRE_ONLY: kernel supports expiry-only entry invalidation
|
420 | 420 | * FUSE_DIRECT_IO_ALLOW_MMAP: allow shared mmap in FOPEN_DIRECT_IO mode.
|
421 | 421 | * FUSE_NO_EXPORT_SUPPORT: explicitly disable export support
|
| 422 | + * FUSE_HAS_RESEND: kernel supports resending pending requests, and the high bit |
| 423 | + * of the request ID indicates resend requests |
422 | 424 | */
|
423 | 425 | #define FUSE_ASYNC_READ (1 << 0)
|
424 | 426 | #define FUSE_POSIX_LOCKS (1 << 1)
|
@@ -460,6 +462,7 @@ struct fuse_file_lock {
|
460 | 462 | #define FUSE_DIRECT_IO_ALLOW_MMAP (1ULL << 36)
|
461 | 463 | #define FUSE_PASSTHROUGH (1ULL << 37)
|
462 | 464 | #define FUSE_NO_EXPORT_SUPPORT (1ULL << 38)
|
| 465 | +#define FUSE_HAS_RESEND (1ULL << 39) |
463 | 466 |
|
464 | 467 | /* Obsolete alias for FUSE_DIRECT_IO_ALLOW_MMAP */
|
465 | 468 | #define FUSE_DIRECT_IO_RELAX FUSE_DIRECT_IO_ALLOW_MMAP
|
@@ -973,6 +976,14 @@ struct fuse_fallocate_in {
|
973 | 976 | uint32_t padding;
|
974 | 977 | };
|
975 | 978 |
|
| 979 | +/** |
| 980 | + * FUSE request unique ID flag |
| 981 | + * |
| 982 | + * Indicates whether this is a resend request. The receiver should handle this |
| 983 | + * request accordingly. |
| 984 | + */ |
| 985 | +#define FUSE_UNIQUE_RESEND (1ULL << 63) |
| 986 | + |
976 | 987 | struct fuse_in_header {
|
977 | 988 | uint32_t len;
|
978 | 989 | uint32_t opcode;
|
|
0 commit comments