summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-09-09 13:10:31 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 14:03:45 -0700
commit92a8780e1136c5ca0c7ed940000d399943d1576e (patch)
treeb7fb327d66c06b47156f157c470f3ac7fed31682 /include
parent1e9a4ed9396e9c31139721b639550ffb1df17065 (diff)
downloadop-kernel-dev-92a8780e1136c5ca0c7ed940000d399943d1576e.zip
op-kernel-dev-92a8780e1136c5ca0c7ed940000d399943d1576e.tar.gz
[PATCH] FUSE - extended attribute operations
This patch adds the extended attribute operations to FUSE. The following operations are added: o getxattr o setxattr o listxattr o removexattr Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fuse.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index 61f3463..bf564ed 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -80,6 +80,10 @@ enum fuse_opcode {
FUSE_STATFS = 17,
FUSE_RELEASE = 18,
FUSE_FSYNC = 20,
+ FUSE_SETXATTR = 21,
+ FUSE_GETXATTR = 22,
+ FUSE_LISTXATTR = 23,
+ FUSE_REMOVEXATTR = 24,
FUSE_FLUSH = 25,
FUSE_INIT = 26
};
@@ -89,6 +93,7 @@ enum fuse_opcode {
#define FUSE_NAME_MAX 1024
#define FUSE_SYMLINK_MAX 4096
+#define FUSE_XATTR_SIZE_MAX 4096
struct fuse_entry_out {
__u64 nodeid; /* Inode ID */
@@ -183,6 +188,19 @@ struct fuse_fsync_in {
__u32 fsync_flags;
};
+struct fuse_setxattr_in {
+ __u32 size;
+ __u32 flags;
+};
+
+struct fuse_getxattr_in {
+ __u32 size;
+};
+
+struct fuse_getxattr_out {
+ __u32 size;
+};
+
struct fuse_init_in_out {
__u32 major;
__u32 minor;
OpenPOWER on IntegriCloud