mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 22:03:49 +03:00
conf: escape string for disk driver name attribute
Just like e92e5ba1, this attribute was missed. Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
parent
d772a70faa
commit
363995b029
@ -18917,8 +18917,7 @@ virDomainDiskDefFormat(virBufferPtr buf,
|
||||
def->ioeventfd || def->event_idx || def->copy_on_read ||
|
||||
def->discard || def->iothread) {
|
||||
virBufferAddLit(buf, "<driver");
|
||||
if (def->src->driverName)
|
||||
virBufferAsprintf(buf, " name='%s'", def->src->driverName);
|
||||
virBufferEscapeString(buf, " name='%s'", def->src->driverName);
|
||||
if (def->src->format > 0)
|
||||
virBufferAsprintf(buf, " type='%s'",
|
||||
virStorageFileFormatTypeToString(def->src->format));
|
||||
|
Loading…
x
Reference in New Issue
Block a user