diff options
author | Amir Goldstein <amir73il@gmail.com> | 2021-12-05 18:29:05 +0200 |
---|---|---|
committer | Amir Goldstein <amir73il@gmail.com> | 2022-01-03 14:55:34 +0200 |
commit | dad15aee26835240d72188179ba177a0bbafe659 (patch) | |
tree | bc03a4652249f38d0236a337c377b952aef38e4b /include/fuse.h | |
parent | 1b498ac9b341e086562f54cc49bf035e19a94e1d (diff) | |
download | libfuse-dad15aee26835240d72188179ba177a0bbafe659.tar.gz |
Add no_rofd_flush mount option
To disable flush for read-only fd.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h index a273b15..9148688 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -248,6 +248,14 @@ struct fuse_config { int auto_cache; /** + * By default, fuse waits for all pending writes to complete + * and calls the FLUSH operation on close(2) of every fuse fd. + * With this option, wait and FLUSH are not done for read-only + * fuse fd, similar to the behavior of NFS/SMB clients. + */ + int no_rofd_flush; + + /** * The timeout in seconds for which file attributes are cached * for the purpose of checking if auto_cache should flush the * file data on open. |