aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/fuse/fuse_kernel.h
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2019-06-20 21:29:28 +0000
committerAlan Somers <asomers@FreeBSD.org>2019-06-20 21:29:28 +0000
commit2ffddc5ee90390821163db2838d17dc4f86535a4 (patch)
tree87ffeb5b889bfe8736dd0ee8081649b734303b8a /sys/fs/fuse/fuse_kernel.h
parenta1c9f4ad0d65957158d62d04619f150159d18f4d (diff)
downloadsrc-2ffddc5ee90390821163db2838d17dc4f86535a4.tar.gz
src-2ffddc5ee90390821163db2838d17dc4f86535a4.zip
fusefs: raise protocol level to 7.13
This protocol version adds one new feature: the ability for the server to set the maximum number of background requests and a "congestion threshold" with ill-defined properties. I don't know of any fuse file systems in ports that use this feature, so I'm not implementing it. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/fuse2/; revision=349244
Diffstat (limited to 'sys/fs/fuse/fuse_kernel.h')
-rw-r--r--sys/fs/fuse/fuse_kernel.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/fs/fuse/fuse_kernel.h b/sys/fs/fuse/fuse_kernel.h
index 6c7f91aa3cf2..01ae75cf8c5e 100644
--- a/sys/fs/fuse/fuse_kernel.h
+++ b/sys/fs/fuse/fuse_kernel.h
@@ -57,6 +57,10 @@
* - add umask flag to input argument of open, mknod and mkdir
* - add notification messages for invalidation of inodes and
* directory entries
+ *
+ * 7.13
+ * - make max number of background requests and congestion threshold
+ * tunables
*/
#ifndef _FUSE_FUSE_KERNEL_H
@@ -68,6 +72,7 @@
#define __s64 int64_t
#define __u32 uint32_t
#define __s32 int32_t
+#define __u16 uint16_t
#else
#include <linux/types.h>
#endif
@@ -76,7 +81,7 @@
#define FUSE_KERNEL_VERSION 7
/** Minor version number of this interface */
-#define FUSE_KERNEL_MINOR_VERSION 12
+#define FUSE_KERNEL_MINOR_VERSION 13
/** The node ID of the root inode */
#define FUSE_ROOT_ID 1
@@ -476,7 +481,8 @@ struct fuse_init_out {
__u32 minor;
__u32 max_readahead;
__u32 flags;
- __u32 unused;
+ __u16 max_background;
+ __u16 congestion_threshold;
__u32 max_write;
};