mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
5ce01b15e1
Test the JSON props generator with a very simple 'raw' image with no other options. The node-names for the image are 31 bytes long so that we validate our node name detector. The top level disk image would generate the following '-drive' cmdline: -drive file=/var/lib/libvirt/images/i.img,format=raw,if=none,id=drive-dummy -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
13 lines
281 B
JSON
13 lines
281 B
JSON
{
|
|
"node-name": "0123456789ABCDEF0123456789ABCDE",
|
|
"read-only": false,
|
|
"driver": "raw",
|
|
"file": {
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/i.img",
|
|
"node-name": "0123456789ABCDEF0123456789ABCDE",
|
|
"read-only": false,
|
|
"discard": "unmap"
|
|
}
|
|
}
|