diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-06-01 10:52:13 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2021-06-02 14:23:20 +0200 |
commit | f8d2ad7881cde73508f9adeb28c7e033b0903ca8 (patch) | |
tree | d57e52f9baacd8529a43110e03f8c2ddda37e241 /tests | |
parent | fa95e9fbab2c19fc07ba82988b1690f8a6ff171b (diff) | |
download | qemu-f8d2ad7881cde73508f9adeb28c7e033b0903ca8.zip qemu-f8d2ad7881cde73508f9adeb28c7e033b0903ca8.tar.gz qemu-f8d2ad7881cde73508f9adeb28c7e033b0903ca8.tar.bz2 |
block: document child argument of bdrv_attach_child_common()
The logic around **child is not obvious: this reference is used not
only to return resulting child, but also to rollback NULL value on
transaction abort.
So, let's add documentation and some assertions.
While being here, drop extra declaration of bdrv_attach_child_noperm().
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210601075218.79249-2-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions