]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix error codes for missing storage pools
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 27 May 2010 12:30:34 +0000 (13:30 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 8 Jun 2010 14:11:13 +0000 (15:11 +0100)
commit627409d1f4ca11b626ddadf008342c5397ea91c5
tree044a640abbdfee340c2a2fea3b47241dbe340257
parente9364d9f2a3079f483fdff7026bbd752081cb526
Fix error codes for missing storage pools

The storage pool driver is mistakenly using the error code
VIR_ERR_INVALID_STORAGE_POOL which is for diagnosing invalid
pointers. This patch switches it to use VIR_ERR_NO_STORAGE_POOL
which is the correct code for cases where the storage pool does
not exist

* src/storage/storage_driver.c: Replace VIR_ERR_INVALID_STORAGE_POOL
  with VIR_ERR_NO_STORAGE_POOL
src/storage/storage_driver.c