From 9f7132314727447c92b8a6e23452386af26c37ea Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sat, 28 Dec 2024 11:22:14 +0100 Subject: [PATCH] Restore compat ABI in 'struct fuse_config' This fixes commit dad15aee26835 "Add no_rofd_flush mount option" and restores the ABI by moving the no_rofd_flush field. Given that there were already several releases with this commit we will still need an so version bump. Signed-off-by: Bernd Schubert --- include/fuse.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/fuse.h b/include/fuse.h index 49ba7d9..78d856b 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -252,14 +252,6 @@ 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 @@ -296,6 +288,14 @@ struct fuse_config { unsigned int fmask; unsigned int dmask; + /** + * 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; + /** * Allow parallel direct-io writes to operate on the same file. * -- 2.30.2