diff options
author | Vladimir Sementsov-Ogievskiy | 2020-12-11 19:39:19 +0100 |
---|---|---|
committer | Eric Blake | 2021-02-03 15:00:33 +0100 |
commit | 69b55e03f7e65a36eb954d0b7d4698b258df2708 (patch) | |
tree | 8a5c36845a2804a3ad04147c2de3bc727a840a48 /include/block/block_int.h | |
parent | iotests: Fix expected whitespace for 185 (diff) | |
download | qemu-69b55e03f7e65a36eb954d0b7d4698b258df2708.tar.gz qemu-69b55e03f7e65a36eb954d0b7d4698b258df2708.tar.xz qemu-69b55e03f7e65a36eb954d0b7d4698b258df2708.zip |
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>
Diffstat (limited to 'include/block/block_int.h')
-rw-r--r-- | include/block/block_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index d01fc23720..5bbbf9ee0a 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -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; |