1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-03 17:47:15 +03:00

virsh: fixed trivial comment and debug message in vshCommandOptVolBy function

This commit is contained in:
Justin Clift 2010-06-09 00:46:06 +10:00 committed by Eric Blake
parent 74231267f8
commit c09f663a47

View File

@ -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);