From cafdcb253e4c7ad6238198982425c004b487d2e6 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 28 Nov 2008 15:12:48 +0000 Subject: If open sets fi->nonseekable, libfuse will tell the kernel that the file is not seekable. Patch by Tejun Heo --- lib/fuse_lowlevel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/fuse_lowlevel.c') diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 99fbfe3..34ff76c 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -322,6 +322,8 @@ static void fill_open(struct fuse_open_out *arg, arg->open_flags |= FOPEN_DIRECT_IO; if (f->keep_cache) arg->open_flags |= FOPEN_KEEP_CACHE; + if (f->nonseekable) + arg->open_flags |= FOPEN_NONSEEKABLE; } int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e) -- cgit v1.2.3