mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
block: refactor bdrv_check_request: add errp
It's better to pass &error_abort than just assert that result is 0: on crash, we'll immediately see the reason in the backtrace. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20201211183934.169161-2-vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> [eblake: fix iotest 206 fallout] Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
c930831446
commit
69b55e03f7
5 changed files with 28 additions and 12 deletions
|
@ -93,7 +93,7 @@ typedef struct BdrvTrackedRequest {
|
|||
struct BdrvTrackedRequest *waiting_for;
|
||||
} BdrvTrackedRequest;
|
||||
|
||||
int bdrv_check_request(int64_t offset, int64_t bytes);
|
||||
int bdrv_check_request(int64_t offset, int64_t bytes, Error **errp);
|
||||
|
||||
struct BlockDriver {
|
||||
const char *format_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue