Skip to contentSkip to conversation

qemu-img convert: Use cache=unsafe for output image

PATCH New Kevin Wolf 1 participant 1 message Aug 31, 2010

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 qemu-img convert: Use cache=unsafe for output image

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.

---
 qemu-img.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
qemu-img.c +2 -1
index d2a978b..4e035e4 100644
@@ -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;
Signature · 1 line
1.7.2.2