qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] qcow2: don't leave partially initialized file on image creation
@ 2020-12-08 14:21 Maxim Levitsky
  2020-12-08 14:21 ` [PATCH v3 1/2] crypto: luks: Fix tiny memory leak Maxim Levitsky
  2020-12-08 14:21 ` [PATCH v3 2/2] block: qcow2: remove the created file on initialization error Maxim Levitsky
  0 siblings, 2 replies; 10+ messages in thread
From: Maxim Levitsky @ 2020-12-08 14:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Maxim Levitsky, Alberto Garcia, qemu-block, Max Reitz

Use the bdrv_co_delete_file interface to delete the underlying
file if qcow2 initialization fails (e.g due to bad encryption secret)

This makes the qcow2 driver behave the same way as the luks driver behaves.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1845353

V3: addressed review feedback and reworked commit messages

Best regards,
	Maxim Levitsky

Maxim Levitsky (2):
  crypto: luks: Fix tiny memory leak
  block: qcow2: remove the created file on initialization error

 block/crypto.c |  2 ++
 block/qcow2.c  | 13 +++++++++++++
 2 files changed, 15 insertions(+)

-- 
2.26.2




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-12-08 17:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-08 14:21 [PATCH v3 0/2] qcow2: don't leave partially initialized file on image creation Maxim Levitsky
2020-12-08 14:21 ` [PATCH v3 1/2] crypto: luks: Fix tiny memory leak Maxim Levitsky
2020-12-08 15:25   ` Alberto Garcia
2020-12-08 14:21 ` [PATCH v3 2/2] block: qcow2: remove the created file on initialization error Maxim Levitsky
2020-12-08 15:26   ` Alberto Garcia
2020-12-08 15:29     ` Maxim Levitsky
2020-12-08 15:47   ` Vladimir Sementsov-Ogievskiy
2020-12-08 16:27     ` Maxim Levitsky
2020-12-08 16:54       ` Vladimir Sementsov-Ogievskiy
2020-12-08 17:11         ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).