diff options
author | Tejun Heo <tj@kernel.org> | 2008-10-16 16:08:57 +0200 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-10-16 16:08:57 +0200 |
commit | a7c1b990f71574e077b94ce4582e2cf11cb891fe (patch) | |
tree | 9192239167f6047c4f5fbc64d530904ac4f8de86 /fs/fuse | |
parent | 29d434b39c807320fbe4bcdce0ab98a0b9fcb285 (diff) | |
download | linux-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')
-rw-r--r-- | fs/fuse/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 98079aa800e8..34930a964b82 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); } |