]> git.proxmox.com Git - qemu.git/commitdiff
qemu-img convert: Use cache=unsafe for output image
authorKevin Wolf <kwolf@redhat.com>
Tue, 31 Aug 2010 11:44:25 +0000 (13:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 13 Sep 2010 12:33:53 +0000 (14:33 +0200)
If qemu-img crashes during the conversion, the user will throw away the broken
output file anyway and start over. So no need to be too cautious.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 1bd8e175580a87c7b9e6791faca7626f9bc3ceeb)

qemu-img.c

index d2a978b9126bb5d406d1184742b6b9336d5c281c..4e035e44cc8085b3095854409aa7f585fc9cca7f 100644 (file)
@@ -783,7 +783,8 @@ static int img_convert(int argc, char **argv)
         goto out;
     }
 
-    out_bs = bdrv_new_open(out_filename, out_fmt, BDRV_O_FLAGS | BDRV_O_RDWR);
+    out_bs = bdrv_new_open(out_filename, out_fmt,
+        BDRV_O_FLAGS | BDRV_O_RDWR | BDRV_O_NO_FLUSH);
     if (!out_bs) {
         ret = -1;
         goto out;