This is a patch series that follows up the patch [1] after the review from Daniel P. Berrange.
The new interface is being implemented only by the LUKS driver because this is the error condition I'm trying to fix. My first idea when coding it was to implement this interface in all drivers that deals with local files, but I thought it would be overkill - at least for this second spin. [1] https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg05899.html Daniel Henrique Barboza (3): block: introducing 'bdrv_co_delete_file' interface block.c: adding bdrv_delete_file qemu-img.c: clean up created file on img_create failure block.c | 117 ++++++++++++++++++++++++++++++++++++++ block/crypto.c | 2 + include/block/block.h | 6 ++ include/block/block_int.h | 6 ++ qemu-img.c | 29 +++++++++- 5 files changed, 159 insertions(+), 1 deletion(-) -- 2.20.1