aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-11-07 03:59:51 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 10:53:42 -0500
commitfd72faac95d7e47610e981d7ed7b3c1529e55c88 (patch)
tree65cde1eb6958f410c4b4c72e322fd59db463150f /include/linux/fuse.h
parent31d40d74b402a6fa18a006fb3745f64609f35b77 (diff)
[PATCH] FUSE: atomic create+open
This patch adds an atomic create+open operation. This does not yet work if the file type changes between lookup and create+open, but solves the permission checking problems for the separte create and open methods. 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index 507913b65af0..45c398f08247 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -100,7 +100,8 @@ enum fuse_opcode {
100 FUSE_READDIR = 28, 100 FUSE_READDIR = 28,
101 FUSE_RELEASEDIR = 29, 101 FUSE_RELEASEDIR = 29,
102 FUSE_FSYNCDIR = 30, 102 FUSE_FSYNCDIR = 30,
103 FUSE_ACCESS = 34 103 FUSE_ACCESS = 34,
104 FUSE_CREATE = 35
104}; 105};
105 106
106/* Conservative buffer size for the client */ 107/* Conservative buffer size for the client */
@@ -158,7 +159,7 @@ struct fuse_setattr_in {
158 159
159struct fuse_open_in { 160struct fuse_open_in {
160 __u32 flags; 161 __u32 flags;
161 __u32 padding; 162 __u32 mode;
162}; 163};
163 164
164struct fuse_open_out { 165struct fuse_open_out {