From 4b5652d0dcb2d53fd4240f589a63aaa434650fe0 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Sun, 8 Sep 2013 21:08:06 -0500 Subject: [PATCH] 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); -- 2.39.5