mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00
block: add zoned BlockDriver check to block layer
Putting zoned/non-zoned BlockDrivers on top of each other is not allowed. Signed-off-by: Sam Li <faithilikerun@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Acked-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20230508045533.175575-6-faithilikerun@gmail.com Message-id: 20230324090605.28361-6-faithilikerun@gmail.com [Adjust commit message prefix as suggested by Philippe Mathieu-Daudé <philmd@linaro.org> and clarify that the check is about zoned BlockDrivers. --Stefan] Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
50c4bcd496
commit
774c726ceb
4 changed files with 37 additions and 0 deletions
|
@ -137,6 +137,11 @@ struct BlockDriver {
|
|||
*/
|
||||
bool is_format;
|
||||
|
||||
/*
|
||||
* Set to true if the BlockDriver supports zoned children.
|
||||
*/
|
||||
bool supports_zoned_children;
|
||||
|
||||
/*
|
||||
* Drivers not implementing bdrv_parse_filename nor bdrv_open should have
|
||||
* this field set to true, except ones that are defined only by their
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue