mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
block: Introduce bs->explicit_options
bs->options doesn't only contain options that the user explicitly requested, but also option that were derived from flags, the filename or inherited from the parent node. For reopen, it is important to know the difference because reopening the parent can change inherited values in child nodes, but it shouldn't change any options that were explicitly specified for the child. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
de3b53f007
commit
145f598e4a
3 changed files with 24 additions and 2 deletions
|
@ -459,6 +459,7 @@ struct BlockDriverState {
|
|||
QLIST_HEAD(, BdrvChild) parents;
|
||||
|
||||
QDict *options;
|
||||
QDict *explicit_options;
|
||||
BlockdevDetectZeroesOptions detect_zeroes;
|
||||
|
||||
/* The error object in use for blocking operations on backing_hd */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue