summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBharata B Rao <bharata@linux.vnet.ibm.com>2013-07-16 21:47:42 +0530
committerStefan Hajnoczi <stefanha@redhat.com>2013-07-19 12:29:21 +0800
commit0c14fb47ece5ef42d7a0a4b3e8e43e022b375720 (patch)
treec7460a55da9832b8b1d1cbebd7d8533c166129d7 /configure
parente01bee0881e0f0c8a79555f6729d7238841a5b04 (diff)
downloadqemu-0c14fb47ece5ef42d7a0a4b3e8e43e022b375720.tar.gz
qemu-0c14fb47ece5ef42d7a0a4b3e8e43e022b375720.tar.bz2
qemu-0c14fb47ece5ef42d7a0a4b3e8e43e022b375720.zip
gluster: Add discard support for GlusterFS block driver.
Implement bdrv_aio_discard for gluster. Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index cf13493135..7c45db2fdd 100755
--- a/configure
+++ b/configure
@@ -237,6 +237,7 @@ libiscsi=""
coroutine=""
seccomp=""
glusterfs=""
+glusterfs_discard="no"
virtio_blk_data_plane=""
gtk=""
gtkabi="2.0"
@@ -2577,6 +2578,9 @@ if test "$glusterfs" != "no" ; then
CFLAGS="$CFLAGS $glusterfs_cflags"
libs_tools="$glusterfs_libs $libs_tools"
libs_softmmu="$glusterfs_libs $libs_softmmu"
+ if $pkg_config --atleast-version=5 glusterfs-api >/dev/null 2>&1; then
+ glusterfs_discard="yes"
+ fi
else
if test "$glusterfs" = "yes" ; then
feature_not_found "GlusterFS backend support"
@@ -3964,6 +3968,10 @@ if test "$glusterfs" = "yes" ; then
echo "CONFIG_GLUSTERFS=y" >> $config_host_mak
fi
+if test "$glusterfs_discard" = "yes" ; then
+ echo "CONFIG_GLUSTERFS_DISCARD=y" >> $config_host_mak
+fi
+
if test "$libssh2" = "yes" ; then
echo "CONFIG_LIBSSH2=y" >> $config_host_mak
fi