]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: More friendly err if no pool is specified for looking up a vol
authorOsier Yang <jyang@redhat.com>
Wed, 21 Sep 2011 06:29:49 +0000 (14:29 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 22 Sep 2011 00:16:08 +0000 (08:16 +0800)
commit2f0595244b73d7d67447bddf4c5e39f597f5e914
treea6e099a74bb04854d3ae0d923e1902d2a64b137b
parentbc4e5b43c28fe8b2032fcd14ec661c4627df3b74
virsh: More friendly err if no pool is specified for looking up a vol

There are 3 ways to lookup a volume, only virStorageVolLookupByName
needs pool object. So if no --pool is specified, it will tries to
get the volume via virStorageVolLookupByPath/virStorageVolLookupByKey.

But if all 3 ways fails, and no --pool is specified, a friendly
error might help the user get right way quickly.
tools/virsh.c