summary refs log tree commit diff stats
path: root/python/qemu/qmp.py
diff options
context:
space:
mode:
authorMaxim Levitsky <mlevitsk@redhat.com>2020-12-17 19:09:04 +0200
committerKevin Wolf <kwolf@redhat.com>2021-02-15 15:10:14 +0100
commit6094cbeb72117204f3302a4581415ee1dc33a879 (patch)
tree2581645d9cb03b067cb8b3906f4929d02db83771 /python/qemu/qmp.py
parenta890f08e586fd81946c51dae6a878d64486b1364 (diff)
downloadfocaccia-qemu-6094cbeb72117204f3302a4581415ee1dc33a879.tar.gz
focaccia-qemu-6094cbeb72117204f3302a4581415ee1dc33a879.zip
block: qcow2: remove the created file on initialization error
If the qcow initialization fails, we should remove the file if it was
already created, to avoid leaving stale files around.

We already do this for luks raw images.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20201217170904.946013-4-mlevitsk@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'python/qemu/qmp.py')
0 files changed, 0 insertions, 0 deletions