]> Git Repo - qemu.git/commit
block: qcow2: remove the created file on initialization error
authorMaxim Levitsky <[email protected]>
Thu, 17 Dec 2020 17:09:04 +0000 (19:09 +0200)
committerKevin Wolf <[email protected]>
Mon, 15 Feb 2021 14:10:14 +0000 (15:10 +0100)
commit6094cbeb72117204f3302a4581415ee1dc33a879
tree2581645d9cb03b067cb8b3906f4929d02db83771
parenta890f08e586fd81946c51dae6a878d64486b1364
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 <[email protected]>
Reviewed-by: Alberto Garcia <[email protected]>
Message-Id: <20201217170904[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/qcow2.c
This page took 0.026322 seconds and 4 git commands to generate.