From: Justin Clift Date: Tue, 8 Jun 2010 14:46:06 +0000 (+1000) Subject: virsh: fixed trivial comment and debug message in vshCommandOptVolBy function X-Git-Tag: v0.8.2~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c09f663a47df2f34f18222e8bb2fd47108217b6b;p=thirdparty%2Flibvirt.git virsh: fixed trivial comment and debug message in vshCommandOptVolBy function --- diff --git a/tools/virsh.c b/tools/virsh.c index 546e247dd8..d60c27b18b 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -9464,17 +9464,19 @@ vshCommandOptVolBy(vshControl *ctl, const vshCmd *cmd, if (name) *name = n; - /* try it by PATH */ + /* try it by name */ if (pool && (flag & VSH_BYNAME)) { - vshDebug(ctl, 5, "%s: <%s> trying as vol UUID\n", + vshDebug(ctl, 5, "%s: <%s> trying as vol name\n", cmd->def->name, optname); vol = virStorageVolLookupByName(pool, n); } + /* try it by key */ if (vol == NULL && (flag & VSH_BYUUID)) { vshDebug(ctl, 5, "%s: <%s> trying as vol key\n", cmd->def->name, optname); vol = virStorageVolLookupByKey(ctl->conn, n); } + /* try it by path */ if (vol == NULL && (flag & VSH_BYUUID)) { vshDebug(ctl, 5, "%s: <%s> trying as vol path\n", cmd->def->name, optname);