]> Git Repo - qemu.git/commit
block: add bdrv_co_delete_file_noerr
authorMaxim Levitsky <[email protected]>
Thu, 17 Dec 2020 17:09:03 +0000 (19:09 +0200)
committerKevin Wolf <[email protected]>
Mon, 15 Feb 2021 14:10:14 +0000 (15:10 +0100)
commita890f08e586fd81946c51dae6a878d64486b1364
tree8a35618d720e9e07f7f063ef2431a3898a999cac
parentdcb6699512b6235eac383fc84e8e27302e08d7e3
block: add bdrv_co_delete_file_noerr

This function wraps bdrv_co_delete_file for the common case of removing a file,
which was just created by format driver, on an error condition.

It hides the -ENOTSUPP error, and reports all other errors otherwise.

Use it in luks driver

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.c
block/crypto.c
include/block/block.h
This page took 0.025178 seconds and 4 git commands to generate.