summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Schröder <andre.schroeder@andresco.de>2022-04-18 23:28:27 +0200
committerNikolaus Rath <Nikolaus@rath.org>2022-04-20 11:15:08 +0100
commit96ad05c8e12bae3c53401d4a856c168ef6c04345 (patch)
treec1f9579b75601fa4d5c6ded920d6a4f97b40f13d
parent7e5278c03dbf7676e49bc21814c8c81b5f3009bd (diff)
downloadfuse-96ad05c8e12bae3c53401d4a856c168ef6c04345.tar.gz
patch: document ignored fill parameter of readdir
-rw-r--r--include/fuse.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 9148688..1a2f841 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -563,6 +563,13 @@ struct fuse_operations {
* passes non-zero offset to the filler function. When the buffer
* is full (or an error happens) the filler function will return
* '1'.
+ *
+ * When FUSE_READDIR_PLUS is not set, only some parameters of the
+ * fill function (the fuse_fill_dir_t parameter) are actually used:
+ * The file type (which is part of stat::st_mode) is used. And if
+ * fuse_config::use_ino is set, the inode (stat::st_ino) is also
+ * used. The other fields are ignored when FUSE_READDIR_PLUS is not
+ * set.
*/
int (*readdir) (const char *, void *, fuse_fill_dir_t, off_t,
struct fuse_file_info *, enum fuse_readdir_flags);