diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-09-09 16:10:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:45 -0400 |
commit | 92a8780e1136c5ca0c7ed940000d399943d1576e (patch) | |
tree | b7fb327d66c06b47156f157c470f3ac7fed31682 /include/linux/fuse.h | |
parent | 1e9a4ed9396e9c31139721b639550ffb1df17065 (diff) |
[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/linux/fuse.h')
-rw-r--r-- | include/linux/fuse.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 61f34636ffbc..bf564edf9905 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
@@ -80,6 +80,10 @@ enum fuse_opcode { | |||
80 | FUSE_STATFS = 17, | 80 | FUSE_STATFS = 17, |
81 | FUSE_RELEASE = 18, | 81 | FUSE_RELEASE = 18, |
82 | FUSE_FSYNC = 20, | 82 | FUSE_FSYNC = 20, |
83 | FUSE_SETXATTR = 21, | ||
84 | FUSE_GETXATTR = 22, | ||
85 | FUSE_LISTXATTR = 23, | ||
86 | FUSE_REMOVEXATTR = 24, | ||
83 | FUSE_FLUSH = 25, | 87 | FUSE_FLUSH = 25, |
84 | FUSE_INIT = 26 | 88 | FUSE_INIT = 26 |
85 | }; | 89 | }; |
@@ -89,6 +93,7 @@ enum fuse_opcode { | |||
89 | 93 | ||
90 | #define FUSE_NAME_MAX 1024 | 94 | #define FUSE_NAME_MAX 1024 |
91 | #define FUSE_SYMLINK_MAX 4096 | 95 | #define FUSE_SYMLINK_MAX 4096 |
96 | #define FUSE_XATTR_SIZE_MAX 4096 | ||
92 | 97 | ||
93 | struct fuse_entry_out { | 98 | struct fuse_entry_out { |
94 | __u64 nodeid; /* Inode ID */ | 99 | __u64 nodeid; /* Inode ID */ |
@@ -183,6 +188,19 @@ struct fuse_fsync_in { | |||
183 | __u32 fsync_flags; | 188 | __u32 fsync_flags; |
184 | }; | 189 | }; |
185 | 190 | ||
191 | struct fuse_setxattr_in { | ||
192 | __u32 size; | ||
193 | __u32 flags; | ||
194 | }; | ||
195 | |||
196 | struct fuse_getxattr_in { | ||
197 | __u32 size; | ||
198 | }; | ||
199 | |||
200 | struct fuse_getxattr_out { | ||
201 | __u32 size; | ||
202 | }; | ||
203 | |||
186 | struct fuse_init_in_out { | 204 | struct fuse_init_in_out { |
187 | __u32 major; | 205 | __u32 major; |
188 | __u32 minor; | 206 | __u32 minor; |