OSDN Git Service

qapi: fix examples of blockdev-add with qcow2
authorVictor Toso <victortoso@redhat.com>
Thu, 1 Sep 2022 08:58:38 +0000 (10:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 7 Sep 2022 13:10:13 +0000 (15:10 +0200)
commitb6522938327141235b97ab38e40c6c4512587373
tree5d88a9a015ce1503d92ee74899da4b84bc3e2009
parente8796ac4b6f8a9f8d1d2c3c6a774d815d10d88c5
qapi: fix examples of blockdev-add with qcow2

The examples use "qcow2" driver with the wrong member name for
BlockdevRef alternate type. This patch changes all wrong member names
from "file" to "data-file" which is the correct member name in
BlockdevOptionsQcow2 for the BlockdevRef field.

Problem was noticed when using the example as a test case for Go
bindings.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220901085840.22520-9-victortoso@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/block-core.json