diff --git a/include/fuse.h b/include/fuse.h index 90ee4bba..3d41aba7 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -249,14 +249,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 @@ -291,6 +283,14 @@ struct fuse_config { */ int parallel_direct_writes; + /** + * 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 remaining options are used by libfuse internally and * should not be touched. diff --git a/include/fuse_common.h b/include/fuse_common.h index 6a060fd9..9e553072 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -68,10 +68,6 @@ struct fuse_file_info { the file/directory is closed. */ unsigned int keep_cache : 1; - /** Can be filled by open/create, to allow parallel direct writes on this - * file */ - unsigned int parallel_direct_writes : 1; - /** Indicates a flush operation. Set in flush operation, also maybe set in highlevel lock operation and lowlevel release operation. */ @@ -96,6 +92,10 @@ struct fuse_file_info { on close. */ unsigned int noflush : 1; + /** Can be filled by open/create, to allow parallel direct writes on this + * file */ + unsigned int parallel_direct_writes : 1; + /** Padding. Reserved for future use*/ unsigned int padding : 23; unsigned int padding2 : 32;