mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 12:51:12 +00:00
156ddb43b1
qemu allows and in some cases uses protocol driver names ('file', 'host_device', 'nbd', ...) in the 'backing file format' field of a qcow to denote a image where the dummy 'raw' driver was not used on top. Adapt our backing store parser for such cases. The examples added in previous patch show the difference in behaviour. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
22 lines
420 B
Plaintext
22 lines
420 B
Plaintext
path:ABS_SRCDIR/virstoragetestdata/images/qcow2-protocol-backing-nbd.qcow2
|
|
backingStoreRaw: nbd+tcp://example.org:6000/blah
|
|
backingStoreRawFormat: raw(1)
|
|
capacity: 10485760
|
|
encryption: 0
|
|
relPath:<null>
|
|
type:file
|
|
format:qcow2
|
|
protocol:none
|
|
hostname:<null>
|
|
|
|
path:blah
|
|
backingStoreRaw: <null>
|
|
backingStoreRawFormat: none(0)
|
|
capacity: 0
|
|
encryption: 0
|
|
relPath:<null>
|
|
type:network
|
|
format:raw
|
|
protocol:nbd
|
|
hostname:example.org
|