summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMax Reitz2020-10-27 20:05:46 +0100
committerKevin Wolf2020-12-11 17:52:40 +0100
commitdf4ea7091b744c8568e8bd9212a756ac504c43d4 (patch)
tree4bb9ba1819d02bb97343e03def3f6ca06ac54251 /configure
parentfuse: (Partially) implement fallocate() (diff)
downloadqemu-df4ea7091b744c8568e8bd9212a756ac504c43d4.tar.gz
qemu-df4ea7091b744c8568e8bd9212a756ac504c43d4.tar.xz
qemu-df4ea7091b744c8568e8bd9212a756ac504c43d4.zip
fuse: Implement hole detection through lseek
This is a relatively new feature in libfuse (available since 3.8.0, which was released in November 2019), so we have to add a dedicated check whether it is available before making use of it. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20201027190600.192171-7-mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index b2f96c0da2..3f823ed163 100755
--- a/configure
+++ b/configure
@@ -450,6 +450,7 @@ ninja=""
skip_meson=no
gettext=""
fuse="auto"
+fuse_lseek="auto"
bogus_os="no"
malloc_trim="auto"
@@ -1530,6 +1531,10 @@ for opt do
;;
--disable-fuse) fuse="disabled"
;;
+ --enable-fuse-lseek) fuse_lseek="enabled"
+ ;;
+ --disable-fuse-lseek) fuse_lseek="disabled"
+ ;;
*)
echo "ERROR: unknown option $opt"
echo "Try '$0 --help' for more information"
@@ -1856,6 +1861,7 @@ disabled with --disable-FEATURE, default is enabled if available:
rng-none dummy RNG, avoid using /dev/(u)random and getrandom()
libdaxctl libdaxctl support
fuse FUSE block device export
+ fuse-lseek SEEK_HOLE/SEEK_DATA support for FUSE exports
NOTE: The object files are built at the place where configure is launched
EOF
@@ -7020,7 +7026,7 @@ NINJA=$ninja $meson setup \
-Diconv=$iconv -Dcurses=$curses -Dlibudev=$libudev\
-Ddocs=$docs -Dsphinx_build=$sphinx_build -Dinstall_blobs=$blobs \
-Dvhost_user_blk_server=$vhost_user_blk_server \
- -Dfuse=$fuse \
+ -Dfuse=$fuse -Dfuse_lseek=$fuse_lseek \
$cross_arg \
"$PWD" "$source_path"