block: Add BdrvChildRole and BdrvChildRoleBits
commit3284bcf430a1d42885c184de73df52fcfd86d589
authorMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 11:05:14 +0000 (13 13:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (18 19:05 +0200)
tree3ba4fe6b05d7492c99bc96193c45e2b55194199f
parentbd86fb990cfedc50d9705b8ed31d183f01942035
block: Add BdrvChildRole and BdrvChildRoleBits

This mask will supplement BdrvChildClass when it comes to what role (or
combination of roles) a child takes for its parent.  It consists of
BdrvChildRoleBits values (which is an enum).

Because empty enums are not allowed, let us just start with it filled.

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