diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> | 2022-07-26 23:11:23 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2022-10-27 20:14:11 +0200 |
commit | 1dcea719794b38752fdd4f8f47c743ecb03be1cc (patch) | |
tree | 113b4e84cb0406cbee0a7d3d390b81955054184a /tests/unit/test-bufferiszero.c | |
parent | a987aa7d3c70a2f7d2e052c1e8e449fcd35c3f78 (diff) | |
download | qemu-1dcea719794b38752fdd4f8f47c743ecb03be1cc.zip qemu-1dcea719794b38752fdd4f8f47c743ecb03be1cc.tar.gz qemu-1dcea719794b38752fdd4f8f47c743ecb03be1cc.tar.bz2 |
test-bdrv-graph-mod: update test_parallel_perm_update test case
test_parallel_perm_update() does two things that we are going to
restrict in the near future:
1. It updates bs->file field by hand. bs->file will be managed
automatically by generic code (together with bs->children list).
Let's better refactor our "tricky" bds to have own state where one
of children is linked as "selected".
This also looks less "tricky", so avoid using this word.
2. It create FILTERED children that are not PRIMARY. Except for tests
all FILTERED children in the Qemu block layer are always PRIMARY as
well. We are going to formalize this rule, so let's better use DATA
children here.
3. It creates more than one FILTERED child, which is already abandoned
in BDRV_CHILD_FILTERED's description.
While being here, update the picture to better correspond to the test
code.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220726201134.924743-5-vsementsov@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/unit/test-bufferiszero.c')
0 files changed, 0 insertions, 0 deletions