diff options
author | 2010-08-31 13:44:25 +0200 | |
---|---|---|
committer | 2010-09-13 14:33:53 +0200 | |
commit | 78b6890828d08d4306e313e3f550d1b4b61685c8 (patch) | |
tree | bfaa179e9e7728dc4d9dad2528f628e8d22897a3 | |
parent | raw-posix: Don't use file name for host_cdrom detection on Linux (diff) | |
download | qemu-kvm-78b6890828d08d4306e313e3f550d1b4b61685c8.tar.gz qemu-kvm-78b6890828d08d4306e313e3f550d1b4b61685c8.tar.bz2 qemu-kvm-78b6890828d08d4306e313e3f550d1b4b61685c8.zip |
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>
(cherry picked from commit 1bd8e175580a87c7b9e6791faca7626f9bc3ceeb)
-rw-r--r-- | qemu-img.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c index d2a978b91..4e035e44c 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; |