From e67bc20778450fcc67c85bc43c45f1c7104d6cb9 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Thu, 30 Jun 2011 16:46:44 +0800 Subject: [PATCH] virsh: Fix a problem of buildPoolXML It doesn't generate "" and "" nodes for "" even if they are explicitly specified. This patch fixes it. --- tools/virsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virsh.c b/tools/virsh.c index d15d2069bc..e82ddae95c 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -6372,7 +6372,7 @@ static int buildPoolXML(const vshCmd *cmd, const char **retname, char **xml) { virBufferAsprintf(&buf, "\n", type); virBufferAsprintf(&buf, " %s\n", name); - if (srcHost || srcPath || srcDev) { + if (srcHost || srcPath || srcDev || srcFormat || srcName) { virBufferAddLit(&buf, " \n"); if (srcHost)