From dad15aee26835240d72188179ba177a0bbafe659 Mon Sep 17 00:00:00 2001 From: Amir Goldstein Date: Sun, 5 Dec 2021 18:29:05 +0200 Subject: Add no_rofd_flush mount option To disable flush for read-only fd. Signed-off-by: Amir Goldstein --- include/fuse.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/fuse.h b/include/fuse.h index a273b15..9148688 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -247,6 +247,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 -- cgit v1.2.3