diff options
author | Ravishankar N <ravishankar@redhat.com> | 2015-06-30 21:10:22 +0300 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2015-11-10 12:32:37 +0300 |
commit | 0b5da8db145bfd44266ac964a2636a0cf8d7c286 (patch) | |
tree | 23e46abfcb58f4b744aeab42a8c3a62e141b399b /fs/fuse/fuse_i.h | |
parent | 3ca8138f014a913f98e6ef40e939868e1e9ea876 (diff) | |
download | linux-0b5da8db145bfd44266ac964a2636a0cf8d7c286.tar.xz |
fuse: add support for SEEK_HOLE and SEEK_DATA in lseek
A useful performance improvement for accessing virtual machine images
via FUSE mount.
See https://bugzilla.redhat.com/show_bug.cgi?id=1220173 for a use-case
for glusterFS.
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 405113101db8..ce394b5fe6b4 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -605,6 +605,9 @@ struct fuse_conn { /** Does the filesystem support asynchronous direct-IO submission? */ unsigned async_dio:1; + /** Is lseek not implemented by fs? */ + unsigned no_lseek:1; + /** The number of requests waiting for completion */ atomic_t num_waiting; |