]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
qemu-img: allow compressed not-in-order writes
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 20 Jun 2018 14:48:35 +0000 (17:48 +0300)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Jul 2018 08:17:59 +0000 (10:17 +0200)
No reason to forbid them, and they are needed to improve performance
with compress-threads in further patches.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c

index e1a506f7f677e37dbe7d4ec7b1297b6e71e98355..7651d8172c703f7e059c631f6d9fb78b5aad413f 100644 (file)
@@ -2141,11 +2141,6 @@ static int img_convert(int argc, char **argv)
         goto fail_getopt;
     }
 
-    if (!s.wr_in_order && s.compressed) {
-        error_report("Out of order write and compress are mutually exclusive");
-        goto fail_getopt;
-    }
-
     if (tgt_image_opts && !skip_create) {
         error_report("--target-image-opts requires use of -n flag");
         goto fail_getopt;