Re: [libvirt] [PATCH] virsh: More friendly err if no pool is specified for looking up a vol

2011-09-21 Thread Osier Yang
于 2011年09月21日 23:19, Eric Blake 写道: On 09/21/2011 01:12 AM, Osier Yang wrote: 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

Re: [libvirt] [PATCH] virsh: More friendly err if no pool is specified for looking up a vol

2011-09-21 Thread Eric Blake
On 09/21/2011 01:12 AM, Osier Yang wrote: 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 specifi

[libvirt] [PATCH] virsh: More friendly err if no pool is specified for looking up a vol

2011-09-20 Thread Osier Yang
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