mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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>
This commit is contained in:
parent
05acda4d16
commit
1bd8e17558
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue