]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-img.c
virtio-pci: error out when both legacy and modern modes are disabled
[mirror_qemu.git] / qemu-img.c
index ef0157aa8ae05c05f84bb64a83443430368cc98b..1090286a9f7822b5aeb2c7cf6d224588c35a5d21 100644 (file)
@@ -2034,7 +2034,7 @@ static int img_convert(int argc, char **argv)
         const char *preallocation =
             qemu_opt_get(opts, BLOCK_OPT_PREALLOC);
 
-        if (!drv->bdrv_write_compressed) {
+        if (!drv->bdrv_co_pwritev_compressed) {
             error_report("Compression not supported for this file format");
             ret = -1;
             goto out;