aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fuse_kernel.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-07-22 17:24:30 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-07-22 17:24:30 +0000
commite3b830965749c516756f4c13588a1eb29e648ec2 (patch)
tree7ac513a4e3f5c843c77ae5575c9e855ed169fba2 /kernel/fuse_kernel.h
parent8d4d1b824173870c94f121416d2cf4704896787e (diff)
downloadlibfuse-e3b830965749c516756f4c13588a1eb29e648ec2.tar.gz
added file locking
Diffstat (limited to 'kernel/fuse_kernel.h')
-rw-r--r--kernel/fuse_kernel.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/kernel/fuse_kernel.h b/kernel/fuse_kernel.h
index 104d31a..a470bed 100644
--- a/kernel/fuse_kernel.h
+++ b/kernel/fuse_kernel.h
@@ -14,7 +14,7 @@
#define FUSE_KERNEL_VERSION 7
/** Minor version number of this interface */
-#define FUSE_KERNEL_MINOR_VERSION 1
+#define FUSE_KERNEL_MINOR_VERSION 2
/** The node ID of the root inode */
#define FUSE_ROOT_ID 1
@@ -55,6 +55,14 @@ struct fuse_kstatfs {
__u32 namelen;
};
+struct fuse_file_lock {
+ __u64 start;
+ __u64 end;
+ __u64 owner;
+ __u32 pid;
+ __u32 type;
+};
+
#define FATTR_MODE (1 << 0)
#define FATTR_UID (1 << 1)
#define FATTR_GID (1 << 2)
@@ -91,7 +99,10 @@ enum fuse_opcode {
FUSE_OPENDIR = 27,
FUSE_READDIR = 28,
FUSE_RELEASEDIR = 29,
- FUSE_FSYNCDIR = 30
+ FUSE_FSYNCDIR = 30,
+ FUSE_GETLK = 31,
+ FUSE_SETLK = 32,
+ FUSE_SETLKW = 33
};
/* Conservative buffer size for the client */
@@ -214,6 +225,10 @@ struct fuse_getxattr_out {
__u32 padding;
};
+struct fuse_lk_in_out {
+ struct fuse_file_lock lk;
+};
+
struct fuse_init_in_out {
__u32 major;
__u32 minor;