mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Add multiiqn XML dump
* Use virBufferEscapeString() per Dan B.
This commit is contained in:
parent
9cb08020e1
commit
98fafb0c3e
@ -815,6 +815,13 @@ virStoragePoolSourceFormat(virBufferPtr buf,
|
|||||||
src->name)
|
src->name)
|
||||||
virBufferVSprintf(buf," <name>%s</name>\n", src->name);
|
virBufferVSprintf(buf," <name>%s</name>\n", src->name);
|
||||||
|
|
||||||
|
if ((options->flags & VIR_STORAGE_POOL_SOURCE_INITIATOR_IQN) &&
|
||||||
|
src->initiator.iqn) {
|
||||||
|
virBufferAddLit(buf," <initiator>\n");
|
||||||
|
virBufferEscapeString(buf," <iqn name='%s'/>\n", src->initiator.iqn);
|
||||||
|
virBufferAddLit(buf," </initiator>\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (options->formatToString) {
|
if (options->formatToString) {
|
||||||
const char *format = (options->formatToString)(src->format);
|
const char *format = (options->formatToString)(src->format);
|
||||||
if (!format) {
|
if (!format) {
|
||||||
|
Loading…
Reference in New Issue
Block a user