block: Add generic bdrv_inherited_options()
commitfae8bd3904642dd7ff582f4ad4e5e63b0cacbe6f
authorMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 11:05:20 +0000 (13 13:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (18 19:05 +0200)
tree72eecf0b14c60b26fabee3caed4b362f34f3ff8e
parentb054ff73547b6e032bde1e98c9a4f8240ce9dd30
block: Add generic bdrv_inherited_options()

After the series this patch belongs to, we want to have a common
BdrvChildClass that encompasses all of child_file, child_format, and
child_backing.  Such a single class needs a single .inherit_options()
implementation, and this patch introduces it.

The next patch will show how the existing implementations can fall back
to it just by passing appropriate BdrvChildRole and parent_is_format
values.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200513110544.176672-11-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c