block: Pass parent_is_format to .inherit_options()
commit3cdc69d31b49bed603adc973cf06ac898a9b2914
authorMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 11:05:18 +0000 (13 13:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (18 19:05 +0200)
tree5dc6470339338c73302bcb805a3ef42189a13d2f
parent272c02eaef0388225c1dcdbec99b2e838bb64d23
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>
block.c
block/block-backend.c
block/vvfat.c
include/block/block_int.h