mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
b8240fe704
Reference the storage via node name rather than inlining it. This is the approach that will be used with -blockdev/blockdev-add since it allows more control and is more future proof. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
37 lines
665 B
JSON
37 lines
665 B
JSON
{
|
|
"node-name": "node-b-f",
|
|
"read-only": false,
|
|
"driver": "qcow2",
|
|
"encrypt": {
|
|
"format": "luks",
|
|
"key-secret": "node-b-f-encalias"
|
|
},
|
|
"file": "node-a-s",
|
|
"backing": "node-b-f"
|
|
}
|
|
{
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/a",
|
|
"node-name": "node-a-s",
|
|
"read-only": false,
|
|
"discard": "unmap"
|
|
}
|
|
{
|
|
"node-name": "node-b-f",
|
|
"read-only": true,
|
|
"driver": "qcow2",
|
|
"encrypt": {
|
|
"format": "aes",
|
|
"key-secret": "node-b-f-encalias"
|
|
},
|
|
"file": "node-b-s",
|
|
"backing": null
|
|
}
|
|
{
|
|
"driver": "file",
|
|
"filename": "/var/lib/libvirt/images/b",
|
|
"node-name": "node-b-s",
|
|
"read-only": true,
|
|
"discard": "unmap"
|
|
}
|