aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-10-16 16:08:57 +0200
committerMiklos Szeredi <miklos@szeredi.hu>2008-10-16 16:08:57 +0200
commita7c1b990f71574e077b94ce4582e2cf11cb891fe (patch)
tree9192239167f6047c4f5fbc64d530904ac4f8de86 /fs/fuse/file.c
parent29d434b39c807320fbe4bcdce0ab98a0b9fcb285 (diff)
downloadkernel_samsung_crespo-a7c1b990f71574e077b94ce4582e2cf11cb891fe.zip
kernel_samsung_crespo-a7c1b990f71574e077b94ce4582e2cf11cb891fe.tar.gz
kernel_samsung_crespo-a7c1b990f71574e077b94ce4582e2cf11cb891fe.tar.bz2
fuse: implement nonseekable open
Let the client request nonseekable open using FOPEN_NONSEEKABLE and call nonseekable_open() on the file if requested. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 98079aa..34930a9 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -101,6 +101,8 @@ void fuse_finish_open(struct inode *inode, struct file *file,
file->f_op = &fuse_direct_io_file_operations;
if (!(outarg->open_flags & FOPEN_KEEP_CACHE))
invalidate_inode_pages2(inode->i_mapping);
+ if (outarg->open_flags & FOPEN_NONSEEKABLE)
+ nonseekable_open(inode, file);
ff->fh = outarg->fh;
file->private_data = fuse_file_get(ff);
}