aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
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 /fs/fuse/inode.c
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 'fs/fuse/inode.c')
-rw-r--r--fs/fuse/inode.c2
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)
124 i_size_write(inode, attr->size); 124 i_size_write(inode, attr->size);
125 if (S_ISREG(inode->i_mode)) { 125 if (S_ISREG(inode->i_mode)) {
126 fuse_init_common(inode); 126 fuse_init_common(inode);
127 fuse_init_file_inode(inode);
127 } else if (S_ISDIR(inode->i_mode)) 128 } else if (S_ISDIR(inode->i_mode))
128 fuse_init_dir(inode); 129 fuse_init_dir(inode);
129 else if (S_ISLNK(inode->i_mode)) 130 else if (S_ISLNK(inode->i_mode))
@@ -137,6 +138,7 @@ static void fuse_init_inode(struct inode *inode, struct fuse_attr *attr)
137 /* Don't let user create weird files */ 138 /* Don't let user create weird files */
138 inode->i_mode = S_IFREG; 139 inode->i_mode = S_IFREG;
139 fuse_init_common(inode); 140 fuse_init_common(inode);
141 fuse_init_file_inode(inode);
140 } 142 }
141} 143}
142 144