From: Vladimir Sementsov-Ogievskiy Date: Tue, 26 Jul 2022 20:11:24 +0000 (+0300) Subject: tests-bdrv-drain: bdrv_replace_test driver: declare supports_backing X-Git-Tag: v7.2.0-rc0~32^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ebfc111a1e34fcec5285095954c360acc2be01a;p=thirdparty%2Fqemu.git tests-bdrv-drain: bdrv_replace_test driver: declare supports_backing We do add COW child to the node. In future we are going to forbid adding COW child to the node that doesn't support backing. So, fix it here now. Don't worry about setting bs->backing itself: in further commit we'll update the block-layer to automatically set/unset this field in generic code. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Hanna Reitz Message-Id: <20220726201134.924743-6-vsementsov@yandex-team.ru> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- diff --git a/tests/unit/test-bdrv-drain.c b/tests/unit/test-bdrv-drain.c index 4924ceb562f..84e09d7070d 100644 --- a/tests/unit/test-bdrv-drain.c +++ b/tests/unit/test-bdrv-drain.c @@ -1970,6 +1970,7 @@ static void coroutine_fn bdrv_replace_test_co_drain_end(BlockDriverState *bs) static BlockDriver bdrv_replace_test = { .format_name = "replace_test", .instance_size = sizeof(BDRVReplaceTestState), + .supports_backing = true, .bdrv_close = bdrv_replace_test_close, .bdrv_co_preadv = bdrv_replace_test_co_preadv,