summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorMax Reitz2020-05-13 13:05:18 +0200
committerKevin Wolf2020-05-18 19:05:25 +0200
commit3cdc69d31b49bed603adc973cf06ac898a9b2914 (patch)
tree5dc6470339338c73302bcb805a3ef42189a13d2f /include/block
parentblock: Pass BdrvChildRole to .inherit_options() (diff)
downloadqemu-3cdc69d31b49bed603adc973cf06ac898a9b2914.tar.gz
qemu-3cdc69d31b49bed603adc973cf06ac898a9b2914.tar.xz
qemu-3cdc69d31b49bed603adc973cf06ac898a9b2914.zip
block: Pass parent_is_format to .inherit_options()
We plan to unify the generic .inherit_options() functions. The resulting common function will need to decide whether to force-enable format probing, force-disable it, or leave it as-is. To make this decision, it will need to know whether the parent node is a format node or not (because we never want format probing if the parent is a format node already (except for the backing chain)). Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200513110544.176672-9-mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 8c1160a577..6245d8a18d 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -677,7 +677,7 @@ struct BdrvChildClass {
* non-BDS parents. */
bool parent_is_bds;
- void (*inherit_options)(BdrvChildRole role,
+ void (*inherit_options)(BdrvChildRole role, bool parent_is_format,
int *child_flags, QDict *child_options,
int parent_flags, QDict *parent_options);