In this new interation, the following changes were made from the previous version [1]: - moved the 'generic' code from block.c to file-posix.c - moved the file delete call from qemu_img to the error path of block_crypto_co_create_opts_luks
[1] https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg06444.html Daniel Henrique Barboza (3): block: introducing 'bdrv_co_delete_file' interface block.c: adding bdrv_delete_file crypto.c: cleanup created file when block_crypto_co_create_opts_luks fails block.c | 82 +++++++++++++++++++++++++++++++++++++++ block/crypto.c | 31 +++++++++++++++ block/file-posix.c | 28 +++++++++++++ include/block/block.h | 3 ++ include/block/block_int.h | 6 +++ 5 files changed, 150 insertions(+) -- 2.20.1