Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2019 21:29:28 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r349244 - projects/fuse2/sys/fs/fuse
Message-ID:  <201906202129.x5KLTS81048948@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Thu Jun 20 21:29:28 2019
New Revision: 349244
URL: https://svnweb.freebsd.org/changeset/base/349244

Log:
  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

Modified:
  projects/fuse2/sys/fs/fuse/fuse_internal.c
  projects/fuse2/sys/fs/fuse/fuse_kernel.h

Modified: projects/fuse2/sys/fs/fuse/fuse_internal.c
==============================================================================
--- projects/fuse2/sys/fs/fuse/fuse_internal.c	Thu Jun 20 20:29:42 2019	(r349243)
+++ projects/fuse2/sys/fs/fuse/fuse_internal.c	Thu Jun 20 21:29:28 2019	(r349244)
@@ -921,6 +921,10 @@ fuse_internal_init_callback(struct fuse_ticket *tick, 
 			 * Don't bother to check FUSE_BIG_WRITES, because it's
 			 * redundant with max_write
 			 */
+			/* 
+			 * max_background and congestion_threshold are not
+			 * implemented
+			 */
 		} else {
 			err = EINVAL;
 		}

Modified: projects/fuse2/sys/fs/fuse/fuse_kernel.h
==============================================================================
--- projects/fuse2/sys/fs/fuse/fuse_kernel.h	Thu Jun 20 20:29:42 2019	(r349243)
+++ projects/fuse2/sys/fs/fuse/fuse_kernel.h	Thu Jun 20 21:29:28 2019	(r349244)
@@ -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;
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906202129.x5KLTS81048948>