summaryrefslogtreecommitdiffstats
path: root/fs/fuse
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
parent29d434b39c807320fbe4bcdce0ab98a0b9fcb285 (diff)
downloadkernel-crypto-a7c1b990f71574e077b94ce4582e2cf11cb891fe.tar.gz
kernel-crypto-a7c1b990f71574e077b94ce4582e2cf11cb891fe.tar.xz
kernel-crypto-a7c1b990f71574e077b94ce4582e2cf11cb891fe.zip
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')
-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 98079aa800e..34930a964b8 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);
}