aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2018-09-17 14:53:30 +0100
committerNikolaus Rath <Nikolaus@rath.org>2018-09-20 09:07:45 +0100
commit7b0075c06f171cdac7a3d565463c0e5938dff04d (patch)
treeafa5bf668b1e853f9822bb1992bb0822bfb41715 /include/fuse_common.h
parent161983e2416bc6e26bbbe89664fff62c48c70858 (diff)
downloadlibfuse-7b0075c06f171cdac7a3d565463c0e5938dff04d.tar.gz
Don't enable adaptive readdirplus unless fs has readdir() handler.
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index 29ad339..83c9dee 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -219,7 +219,7 @@ struct fuse_loop_config {
#define FUSE_CAP_AUTO_INVAL_DATA (1 << 12)
/**
- * Indicates that the filesystem supports readdirplus
+ * Indicates that the filesystem supports readdirplus.
*
* This feature is enabled by default when supported by the kernel and if the
* filesystem implements a readdirplus() handler.
@@ -227,10 +227,21 @@ struct fuse_loop_config {
#define FUSE_CAP_READDIRPLUS (1 << 13)
/**
- * Indicates that the filesystem supports adaptive readdirplus
+ * Indicates that the filesystem supports adaptive readdirplus.
*
- * This feature is enabled by default when supported by the kernel and if the
- * filesystem implements a readdirplus() handler.
+ * If FUSE_CAP_READDIRPLUS is not set, this flag has no effect.
+ *
+ * If FUSE_CAP_READDIRPLUS is set and this flag is not set, the kernel
+ * will always issue readdirplus() requests to retrieve directory
+ * contents.
+ *
+ * If FUSE_CAP_READDIRPLUS is set and this flag is set, the kernel
+ * will issue both readdir() and readdirplus() requests, depending on
+ * how much information is expected to be required.
+ *
+ * This feature is enabled by default when supported by the kernel and
+ * if the filesystem implements both a readdirplus() and a readdir()
+ * handler.
*/
#define FUSE_CAP_READDIRPLUS_AUTO (1 << 14)