libfuse: add missing INIT flags
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 6 Feb 2013 16:20:50 +0000 (17:20 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 6 Feb 2013 16:20:50 +0000 (17:20 +0100)
Add missing flags that userspace derived from the protocol version number.  This
makes the protocol more flexible.

ChangeLog
include/fuse_kernel.h

index 788ee045e982c6c8043646d397b3b1cb08c432fd..7c9a2e200abfefbb5c177bf9d27ccc3029a75e07 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
        * libfuse: set close-on-exec flag on pipe file descriptors.  Patch
        by Eric Wong
 
+       * libfuse: add missing INIT flags
+
 2013-02-05  Miklos Szeredi <miklos@szeredi.hu>
 
        * libfuse: fix fuse_get_context() in non fuse threads.  Reported
index c632b58fbcf43103609523cc90fa708caee6d14f..0f24494960e1019fe9d400de1957b431ec512931 100644 (file)
@@ -194,10 +194,18 @@ struct fuse_file_lock {
 /**
  * INIT request/reply flags
  *
+ * FUSE_ASYNC_READ: asynchronous read requests
  * FUSE_POSIX_LOCKS: remote locking for POSIX file locks
+ * FUSE_FILE_OPS: kernel sends file handle for fstat, etc... (not yet supported)
+ * FUSE_ATOMIC_O_TRUNC: handles the O_TRUNC open flag in the filesystem
  * FUSE_EXPORT_SUPPORT: filesystem handles lookups of "." and ".."
+ * FUSE_BIG_WRITES: filesystem can handle write size larger than 4kB
  * FUSE_DONT_MASK: don't apply umask to file mode on create operations
+ * FUSE_SPLICE_WRITE: kernel supports splice write on the device
+ * FUSE_SPLICE_MOVE: kernel supports splice move on the device
+ * FUSE_SPLICE_READ: kernel supports splice read on the device
  * FUSE_FLOCK_LOCKS: remote locking for BSD style file locks
+ * FUSE_HAS_IOCTL_DIR: kernel supports ioctl on directories
  */
 #define FUSE_ASYNC_READ                (1 << 0)
 #define FUSE_POSIX_LOCKS       (1 << 1)
@@ -206,7 +214,11 @@ struct fuse_file_lock {
 #define FUSE_EXPORT_SUPPORT    (1 << 4)
 #define FUSE_BIG_WRITES                (1 << 5)
 #define FUSE_DONT_MASK         (1 << 6)
+#define FUSE_SPLICE_WRITE      (1 << 7)
+#define FUSE_SPLICE_MOVE       (1 << 8)
+#define FUSE_SPLICE_READ       (1 << 9)
 #define FUSE_FLOCK_LOCKS       (1 << 10)
+#define FUSE_HAS_IOCTL_DIR     (1 << 11)
 
 /**
  * CUSE INIT request/reply flags