diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2017-07-13 18:30:25 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-09-04 18:31:13 +0200 |
commit | 5a612c009ee538a3b32c896f9a6c5562a50efe9d (patch) | |
tree | 9e33b62dd41f222d3712d2adf3ce21145787520e /tests/qapi-schema/alternate-conflict-string.exit | |
parent | 98bfaac788be0ca63d7d010c8d4ba100ff1d8278 (diff) |
block: pass bdrv_* methods to bs->file by default in block filters
The following functions fail if bs->drv is a filter and does not
implement them:
bdrv_probe_blocksizes
bdrv_probe_geometry
bdrv_truncate
bdrv_has_zero_init
bdrv_get_info
Instead, the call should be passed to bs->file if it exists, to allow
filter drivers to support those methods without implementing them. This
commit makes `drv->is_filter = true` imply that these callbacks will be
forwarded to bs->file by default, so disabling support for these
functions must be done explicitly.
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qapi-schema/alternate-conflict-string.exit')
0 files changed, 0 insertions, 0 deletions