mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 09:47:20 +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->ioeventfd || def->event_idx || def->copy_on_read ||
|
||||||
def->discard || def->iothread) {
|
def->discard || def->iothread) {
|
||||||
virBufferAddLit(buf, "<driver");
|
virBufferAddLit(buf, "<driver");
|
||||||
if (def->src->driverName)
|
virBufferEscapeString(buf, " name='%s'", def->src->driverName);
|
||||||
virBufferAsprintf(buf, " name='%s'", def->src->driverName);
|
|
||||||
if (def->src->format > 0)
|
if (def->src->format > 0)
|
||||||
virBufferAsprintf(buf, " type='%s'",
|
virBufferAsprintf(buf, " type='%s'",
|
||||||
virStorageFileFormatTypeToString(def->src->format));
|
virStorageFileFormatTypeToString(def->src->format));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user