diff options
author | Fam Zheng <famz@redhat.com> | 2018-06-01 17:26:43 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2018-06-01 14:41:48 +0100 |
commit | 1efad060d7e131dd52ecd1e038a6ddd37a3940c8 (patch) | |
tree | 4b55633dcca404ae4cd99c70b5793329c8f63fa0 /configure | |
parent | fd9fcd37a8645efe322956d94f76e90135522a16 (diff) | |
download | qemu-1efad060d7e131dd52ecd1e038a6ddd37a3940c8.zip qemu-1efad060d7e131dd52ecd1e038a6ddd37a3940c8.tar.gz qemu-1efad060d7e131dd52ecd1e038a6ddd37a3940c8.tar.bz2 |
file-posix: Implement bdrv_co_copy_range
With copy_file_range(2), we can implement the bdrv_co_copy_range
semantics.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 20180601092648.24614-6-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -5183,6 +5183,20 @@ if test "$fortify_source" != "no"; then fi fi +############################################### +# Check if copy_file_range is provided by glibc +have_copy_file_range=no +cat > $TMPC << EOF +#include <unistd.h> +int main(void) { + copy_file_range(0, NULL, 0, NULL, 0, 0); + return 0; +} +EOF +if compile_prog "" "" ; then + have_copy_file_range=yes +fi + ########################################## # check if struct fsxattr is available via linux/fs.h @@ -6286,6 +6300,9 @@ fi if test "$have_fsxattr" = "yes" ; then echo "HAVE_FSXATTR=y" >> $config_host_mak fi +if test "$have_copy_file_range" = "yes" ; then + echo "HAVE_COPY_FILE_RANGE=y" >> $config_host_mak +fi if test "$vte" = "yes" ; then echo "CONFIG_VTE=y" >> $config_host_mak echo "VTE_CFLAGS=$vte_cflags" >> $config_host_mak |