From: Doug Goldstein Date: Mon, 9 Sep 2013 02:08:06 +0000 (-0500) Subject: Allow for type=block to have no dev X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4b5652d0dcb2d53fd4240f589a63aaa434650fe0;p=libvirt.git Allow for type=block to have no dev Currently the XML parser already allows the following syntax:
But it if the dev value is NULL then it would not have the leading " - - - + + + + + diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 05c1de4f53..c4b64645b9 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -14207,8 +14207,8 @@ virDomainDiskSourceDefFormat(virBufferPtr buf, } break; case VIR_DOMAIN_DISK_TYPE_BLOCK: - virBufferEscapeString(buf, " src); + virBufferAddLit(buf, " src); if (def->startupPolicy) virBufferEscapeString(buf, " startupPolicy='%s'", startupPolicy);