aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_lowlevel.h
diff options
context:
space:
mode:
authorChad Austin <chad@chadaustin.me>2019-04-16 11:44:59 -0700
committerNikolaus Rath <Nikolaus@rath.org>2019-04-16 19:44:59 +0100
commit6439231f9ba8af9c0eab8dcda54a8fc31e63ae99 (patch)
tree2ba872c19ceab7e7e59977df21db2c9246f803f3 /include/fuse_lowlevel.h
parent7bf25b6987d84c816aebd5325b95cfa0d311b1e6 (diff)
downloadlibfuse-6439231f9ba8af9c0eab8dcda54a8fc31e63ae99.tar.gz
Add documentation for opting out of opendir and releasedir (#391)
Diffstat (limited to 'include/fuse_lowlevel.h')
-rw-r--r--include/fuse_lowlevel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 87c362a..b7afe16 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -665,6 +665,13 @@ struct fuse_lowlevel_ops {
* etc) in fi->fh, and use this in other all other directory
* stream operations (readdir, releasedir, fsyncdir).
*
+ * If this request is answered with an error code of ENOSYS and
+ * FUSE_CAP_NO_OPENDIR_SUPPORT is set in `fuse_conn_info.capable`,
+ * this is treated as success and future calls to opendir and
+ * releasedir will also succeed without being sent to the filesystem
+ * process. In addition, the kernel will cache readdir results
+ * as if opendir returned FOPEN_KEEP_CACHE | FOPEN_CACHE_DIR.
+ *
* Valid replies:
* fuse_reply_open
* fuse_reply_err