]> err.no Git - linux-2.6/blobdiff - include/linux/fuse.h
fuse: add helper for asynchronous writes
[linux-2.6] / include / linux / fuse.h
index 436047093bc4ddd44a7fff743e52abcb2910f93e..6f4a31266cd586a2eefe9fe2dd46fb5b2c3b0993 100644 (file)
@@ -13,6 +13,7 @@
  *
  * 7.9:
  *  - new fuse_getattr_in input argument of GETATTR
+ *  - add lk_flags in fuse_lk_in
  */
 
 #include <asm/types.h>
@@ -113,6 +114,18 @@ struct fuse_file_lock {
  */
 #define FUSE_GETATTR_FH                (1 << 0)
 
+/**
+ * Lock flags
+ */
+#define FUSE_LK_FLOCK          (1 << 0)
+
+/**
+ * WRITE flags
+ *
+ * FUSE_WRITE_CACHE: delayed write from page cache, file handle is guessed
+ */
+#define FUSE_WRITE_CACHE       (1 << 0)
+
 enum fuse_opcode {
        FUSE_LOOKUP        = 1,
        FUSE_FORGET        = 2,  /* no reply */
@@ -295,6 +308,8 @@ struct fuse_lk_in {
        __u64   fh;
        __u64   owner;
        struct fuse_file_lock lk;
+       __u32   lk_flags;
+       __u32   padding;
 };
 
 struct fuse_lk_out {