aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-27 21:38:42 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-27 21:38:42 -0700
commite885e84f796da2433907e57358bc4916bca30a50 (patch)
tree278350db190c3f8f50933397d368cc9fbbbe74e9 /include
parent4fade0c616a9227e42043ac3332f0fc59a6df327 (diff)
Add max_read to fuse_conn_info
Eventually, this setting should be negotiated in the filesystem's init() handler (like e.g. max_write). However, this requires corresponding changes in the FUSE kernel module. In preparation for this (and to allow a transition period) we already allow (and require) filesystems to set the value in the init() handler in addition to the mount option. The end-goal is tracked in issue #91.
Diffstat (limited to 'include')
-rw-r--r--include/fuse_common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index c3636b8..5840956 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -222,6 +222,20 @@ struct fuse_conn_info {
unsigned max_write;
/**
+ * Maximum size of read requests. A value of zero indicates no
+ * limit. However, even if the filesystem does not specify a
+ * limit, the maximum size of read requests will still be
+ * limited by the kernel.
+ *
+ * NOTE: For the time being, the maximum size of read requests
+ * must be set both here *and* passed to fuse_session_new()
+ * using the ``-o max_read=<n>`` mount option. At some point
+ * in the future, specifying the mount option will no longer
+ * be necessary.
+ */
+ unsigned max_read;
+
+ /**
* Maximum readahead
*/
unsigned max_readahead;