Searched hist:"5 a612c009ee538a3b32c896f9a6c5562a50efe9d" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/block/ |
H A D | block_int.h | diff 5a612c009ee538a3b32c896f9a6c5562a50efe9d Thu Jul 13 10:30:25 CDT 2017 Manos Pitsidianakis <el13635@mail.ntua.gr> 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>
|
/openbmc/qemu/ |
H A D | block.c | diff 5a612c009ee538a3b32c896f9a6c5562a50efe9d Thu Jul 13 10:30:25 CDT 2017 Manos Pitsidianakis <el13635@mail.ntua.gr> 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>
|