Messages in this thread Patch in this message | | | Subject | [PATCH 1/5] fuse: add FOPEN_SYNC_RELEASE flag to ff->open_flags | From | Maxim Patlasov <> | Date | Thu, 25 Sep 2014 16:05:22 +0400 |
| |
The feature will be governed by fuse file open flag FOPEN_SYNC_RELEASE. Userspace can enable it on per file basis in the same way as for FOPEN_KEEP_CACHE or FOPEN_DIRECT_IO.
Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com> --- include/uapi/linux/fuse.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index 25084a0..607c45c 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h @@ -205,10 +205,13 @@ struct fuse_file_lock { * FOPEN_DIRECT_IO: bypass page cache for this open file * FOPEN_KEEP_CACHE: don't invalidate the data cache on open * FOPEN_NONSEEKABLE: the file is not seekable + * FOPEN_SYNC_RELEASE: synchronously release file on last fput, + * which, in turn, not always bound to fclose(2)! */ #define FOPEN_DIRECT_IO (1 << 0) #define FOPEN_KEEP_CACHE (1 << 1) #define FOPEN_NONSEEKABLE (1 << 2) +#define FOPEN_SYNC_RELEASE (1 << 3) /** * INIT request/reply flags
| |