aboutsummaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-08-31 13:44:25 +0200
committerKevin Wolf <kwolf@redhat.com>2010-09-08 12:39:20 +0200
commit1bd8e175580a87c7b9e6791faca7626f9bc3ceeb (patch)
tree73bcf5acdd3abe1bba0187d4a9de08d312b4ebc9 /qemu-img.c
parent05acda4d1660591ea317619699f6aa7c659a90f1 (diff)
downloadqemu-1bd8e175580a87c7b9e6791faca7626f9bc3ceeb.zip
qemu-1bd8e175580a87c7b9e6791faca7626f9bc3ceeb.tar.gz
qemu-1bd8e175580a87c7b9e6791faca7626f9bc3ceeb.tar.bz2
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. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index d2a978b..4e035e4 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -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;