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:
Peter Krempa 2017-10-09 08:55:15 +02:00
parent caf71b64fe
commit 31bbb15884

View File

@ -1013,5 +1013,10 @@ qemuBlockStorageSourceGetBackendProps(virStorageSourcePtr src)
break;
}
if (virJSONValueObjectAdd(fileprops, "S:node-name", src->nodestorage, NULL) < 0) {
virJSONValueFree(fileprops);
return NULL;
}
return fileprops;
}