summaryrefslogtreecommitdiffstats
path: root/bsd-user/main.c
diff options
context:
space:
mode:
authorMaxim Levitsky2020-12-17 18:09:04 +0100
committerKevin Wolf2021-02-15 15:10:14 +0100
commit6094cbeb72117204f3302a4581415ee1dc33a879 (patch)
tree2581645d9cb03b067cb8b3906f4929d02db83771 /bsd-user/main.c
parentblock: add bdrv_co_delete_file_noerr (diff)
downloadqemu-6094cbeb72117204f3302a4581415ee1dc33a879.tar.gz
qemu-6094cbeb72117204f3302a4581415ee1dc33a879.tar.xz
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 'bsd-user/main.c')
0 files changed, 0 insertions, 0 deletions