diff options
author | Alan Somers <asomers@FreeBSD.org> | 2019-05-29 00:01:36 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2019-05-29 00:01:36 +0000 |
commit | 3f105d16a00de165497a3bc8051d2464c32cbd47 (patch) | |
tree | f4f416e50a0b3fbc610c428aadc4496c3236bdec /sys/fs/fuse/fuse_kernel.h | |
parent | d4fd0c8148b0aa291569a688a400cf6dfdf055c1 (diff) | |
download | src-3f105d16a00de165497a3bc8051d2464c32cbd47.tar.gz src-3f105d16a00de165497a3bc8051d2464c32cbd47.zip |
fusefs: raise protocol level to 7.10
Protocol version 7.10 has only one new feature, and I'm choosing not to
implement it, so this commit is basically a noop. The sole new feature is
the FOPEN_NONSEEKABLE flag, which a fuse file system can return to indicate
that a certain file handle cannot be seeked. However, I'm unaware of any
file system in ports that uses this flag.
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/projects/fuse2/; revision=348344
Diffstat (limited to 'sys/fs/fuse/fuse_kernel.h')
-rw-r--r-- | sys/fs/fuse/fuse_kernel.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/fs/fuse/fuse_kernel.h b/sys/fs/fuse/fuse_kernel.h index e51c9239f7df..f261be33e55a 100644 --- a/sys/fs/fuse/fuse_kernel.h +++ b/sys/fs/fuse/fuse_kernel.h @@ -45,6 +45,9 @@ * - add lock_owner field to fuse_setattr_in, fuse_read_in and fuse_write_in * - add blksize field to fuse_attr * - add file flags field to fuse_read_in and fuse_write_in + * + * 7.10 + * - add nonseekable open flag */ #ifndef _FUSE_FUSE_KERNEL_H @@ -64,7 +67,7 @@ #define FUSE_KERNEL_VERSION 7 /** Minor version number of this interface */ -#define FUSE_KERNEL_MINOR_VERSION 9 +#define FUSE_KERNEL_MINOR_VERSION 10 /** The node ID of the root inode */ #define FUSE_ROOT_ID 1 @@ -72,9 +75,6 @@ /** The major number of the fuse character device */ #define FUSE_MAJOR MISC_MAJOR -/** The minor number of the fuse character device */ -#define FUSE_MINOR 229 - /* Make sure all structures are padded to 64bit boundary, so 32bit userspace works under 64bit kernels */ @@ -136,9 +136,11 @@ 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 */ #define FOPEN_DIRECT_IO (1 << 0) #define FOPEN_KEEP_CACHE (1 << 1) +#define FOPEN_NONSEEKABLE (1 << 2) /** * INIT request/reply flags |