diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2008-11-28 15:12:48 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-11-28 15:12:48 +0000 |
commit | cafdcb253e4c7ad6238198982425c004b487d2e6 (patch) | |
tree | 8271aaf24fc9470b60458c897f09156bf0921b25 /lib/fuse_lowlevel.c | |
parent | e9191d5550e36bde10781e4aa84a3fc4be17f609 (diff) | |
download | android_external_fuse-cafdcb253e4c7ad6238198982425c004b487d2e6.tar.gz android_external_fuse-cafdcb253e4c7ad6238198982425c004b487d2e6.tar.bz2 android_external_fuse-cafdcb253e4c7ad6238198982425c004b487d2e6.zip |
If open sets fi->nonseekable, libfuse will tell the kernel that the file is not seekable. Patch by Tejun Heo
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r-- | lib/fuse_lowlevel.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |