]> xenbits.xensource.com Git - libvirt.git/commit
storage: pool: Fix handling of errors on pool lookup failure
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Jun 2014 08:40:59 +0000 (10:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 12 Jun 2014 07:55:08 +0000 (09:55 +0200)
commitefd892761e9e5e16f47367d97ee99f7a2ca5d0fe
tree647e584e6c71e99de5f3d26f7c86cb5da9ebe13e
parent046a441f3d2b408c7d2482839d35056c24f38ffe
storage: pool: Fix handling of errors on pool lookup failure

Rework internal pool lookup code to avoid printing the raw UUID buffer
in the case a storage pool can't be found:

 $ virsh pool-name e012ace0-0460-5810-39ef-1bce5fa5a4dd
 error: failed to get pool 'e012ace0-0460-5810-39ef-1bce5fa5a4dd'
 error: Storage pool not found: no storage pool with matching uuid à¬à`X9ï_¥¤Ý

The rework is mostly done by switching the lookup code to the newly
introduced helper virStoragePoolObjFromStoragePool

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1104993
src/storage/storage_driver.c