diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-09-09 16:10:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:45 -0400 |
commit | 9e6268db496a2592e89457537ea54a496feabb77 (patch) | |
tree | e01d0d7585886fd318b6f16de9329349a629e3f8 /fs/fuse/fuse_i.h | |
parent | e5e5558e923f35839108a12718494ecb73fb782f (diff) |
[PATCH] FUSE - read-write operations
This patch adds the write filesystem operations of FUSE.
The following operations are added:
o setattr
o symlink
o mknod
o mkdir
o create
o unlink
o rmdir
o rename
o link
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 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 8d91e1492f96..87d25b8f2dc1 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -30,6 +30,9 @@ struct fuse_inode { | |||
30 | * and kernel */ | 30 | * and kernel */ |
31 | u64 nodeid; | 31 | u64 nodeid; |
32 | 32 | ||
33 | /** Number of lookups on this inode */ | ||
34 | u64 nlookup; | ||
35 | |||
33 | /** The request used for sending the FORGET message */ | 36 | /** The request used for sending the FORGET message */ |
34 | struct fuse_req *forget_req; | 37 | struct fuse_req *forget_req; |
35 | 38 | ||
@@ -252,13 +255,13 @@ extern spinlock_t fuse_lock; | |||
252 | * Get a filled in inode | 255 | * Get a filled in inode |
253 | */ | 256 | */ |
254 | struct inode *fuse_iget(struct super_block *sb, unsigned long nodeid, | 257 | struct inode *fuse_iget(struct super_block *sb, unsigned long nodeid, |
255 | int generation, struct fuse_attr *attr, int version); | 258 | int generation, struct fuse_attr *attr); |
256 | 259 | ||
257 | /** | 260 | /** |
258 | * Send FORGET command | 261 | * Send FORGET command |
259 | */ | 262 | */ |
260 | void fuse_send_forget(struct fuse_conn *fc, struct fuse_req *req, | 263 | void fuse_send_forget(struct fuse_conn *fc, struct fuse_req *req, |
261 | unsigned long nodeid, int version); | 264 | unsigned long nodeid, u64 nlookup); |
262 | 265 | ||
263 | /** | 266 | /** |
264 | * Initialise inode operations on regular files and special files | 267 | * Initialise inode operations on regular files and special files |