From 6439231f9ba8af9c0eab8dcda54a8fc31e63ae99 Mon Sep 17 00:00:00 2001 From: Chad Austin Date: Tue, 16 Apr 2019 11:44:59 -0700 Subject: Add documentation for opting out of opendir and releasedir (#391) --- include/fuse_lowlevel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/fuse_lowlevel.h') 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 -- cgit v1.2.3