mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: block: Add node-names to JSON backing storage strings
Format out the node-name if it was assigned for JSON-based storage specification.
This commit is contained in:
parent
caf71b64fe
commit
31bbb15884
@ -1013,5 +1013,10 @@ qemuBlockStorageSourceGetBackendProps(virStorageSourcePtr src)
|
||||
break;
|
||||
}
|
||||
|
||||
if (virJSONValueObjectAdd(fileprops, "S:node-name", src->nodestorage, NULL) < 0) {
|
||||
virJSONValueFree(fileprops);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return fileprops;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user