diff options
author | Miklos Szeredi | 2005-09-09 22:10:30 +0200 |
---|---|---|
committer | Linus Torvalds | 2005-09-09 23:03:45 +0200 |
commit | b6aeadeda22a9aa322fdfcd3f4c69ccf0da5cbdd (patch) | |
tree | 794afec0eeb13722550a97783ec0cfb95e5e83cb /fs/fuse/inode.c | |
parent | [PATCH] FUSE - read-write operations (diff) | |
download | kernel-qcow2-linux-b6aeadeda22a9aa322fdfcd3f4c69ccf0da5cbdd.tar.gz kernel-qcow2-linux-b6aeadeda22a9aa322fdfcd3f4c69ccf0da5cbdd.tar.xz kernel-qcow2-linux-b6aeadeda22a9aa322fdfcd3f4c69ccf0da5cbdd.zip |
[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 'fs/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index fa03f80806e5..f229d6962643 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -124,6 +124,7 @@ static void fuse_init_inode(struct inode *inode, struct fuse_attr *attr) i_size_write(inode, attr->size); if (S_ISREG(inode->i_mode)) { fuse_init_common(inode); + fuse_init_file_inode(inode); } else if (S_ISDIR(inode->i_mode)) fuse_init_dir(inode); else if (S_ISLNK(inode->i_mode)) @@ -137,6 +138,7 @@ static void fuse_init_inode(struct inode *inode, struct fuse_attr *attr) /* Don't let user create weird files */ inode->i_mode = S_IFREG; fuse_init_common(inode); + fuse_init_file_inode(inode); } } |