aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-09-09 16:10:30 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 17:03:45 -0400
commitb6aeadeda22a9aa322fdfcd3f4c69ccf0da5cbdd (patch)
tree794afec0eeb13722550a97783ec0cfb95e5e83cb /include
parent9e6268db496a2592e89457537ea54a496feabb77 (diff)
[PATCH] FUSE - file operations
This patch adds the file operations of FUSE. The following operations are added: o open o flush o release o fsync o readpage o commit_write 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.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index 19d69a3e1623..61f34636ffbc 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -74,7 +74,13 @@ enum fuse_opcode {
74 FUSE_RMDIR = 11, 74 FUSE_RMDIR = 11,
75 FUSE_RENAME = 12, 75 FUSE_RENAME = 12,
76 FUSE_LINK = 13, 76 FUSE_LINK = 13,
77 FUSE_OPEN = 14,
78 FUSE_READ = 15,
79 FUSE_WRITE = 16,
77 FUSE_STATFS = 17, 80 FUSE_STATFS = 17,
81 FUSE_RELEASE = 18,
82 FUSE_FSYNC = 20,
83 FUSE_FLUSH = 25,
78 FUSE_INIT = 26 84 FUSE_INIT = 26
79}; 85};
80 86
@@ -132,10 +138,51 @@ struct fuse_setattr_in {
132 struct fuse_attr attr; 138 struct fuse_attr attr;
133}; 139};
134 140
141struct fuse_open_in {
142 __u32 flags;
143};
144
145struct fuse_open_out {
146 __u64 fh;
147 __u32 open_flags;
148};
149
150struct fuse_release_in {
151 __u64 fh;
152 __u32 flags;
153};
154
155struct fuse_flush_in {
156 __u64 fh;
157 __u32 flush_flags;
158};
159
160struct fuse_read_in {
161 __u64 fh;
162 __u64 offset;
163 __u32 size;
164};
165
166struct fuse_write_in {
167 __u64 fh;
168 __u64 offset;
169 __u32 size;
170 __u32 write_flags;
171};
172
173struct fuse_write_out {
174 __u32 size;
175};
176
135struct fuse_statfs_out { 177struct fuse_statfs_out {
136 struct fuse_kstatfs st; 178 struct fuse_kstatfs st;
137}; 179};
138 180
181struct fuse_fsync_in {
182 __u64 fh;
183 __u32 fsync_flags;
184};
185
139struct fuse_init_in_out { 186struct fuse_init_in_out {
140 __u32 major; 187 __u32 major;
141 __u32 minor; 188 __u32 minor;