diff options
author | Max Reitz <mreitz@redhat.com> | 2020-02-18 11:34:41 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-02-18 11:55:39 +0100 |
commit | 5d69b5ab85d30201c1f5ef34651ba910977fc583 (patch) | |
tree | 331cf09380c717614400c7905a3a0e8aa0681128 /include/sysemu/sysemu.h | |
parent | 37a3791b380584949046af6b62b54869390616dc (diff) |
block: Add bdrv_recurse_can_replace()
After a couple of follow-up patches, this function will replace
bdrv_recurse_is_first_non_filter() in check_to_replace_node().
bdrv_recurse_is_first_non_filter() is both not sufficiently specific for
check_to_replace_node() (it allows cases that should not be allowed,
like replacing child nodes of quorum with dissenting data that have more
parents than just quorum), and it is too restrictive (it is perfectly
fine to replace filters).
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200218103454.296704-7-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu/sysemu.h')
0 files changed, 0 insertions, 0 deletions