]> xenbits.xensource.com Git - libvirt.git/commit
Fix error codes returned when a storage pool is inactive
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Nov 2010 15:47:37 +0000 (15:47 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 23 Nov 2010 15:00:35 +0000 (15:00 +0000)
commite4c97a10db970672faae5900dc8e26f10bca75fa
treefed0570d86fca679b10e3bcbc4746a80d52bed04
parent1b7e0b1a9c3e94e77b2d9b09d6002167f02ad25e
Fix error codes returned when a storage pool is inactive

Many operations are not valid on inactive storage pools. The
storage driver is currently returning VIR_ERR_INTERNAL_ERROR
in these cases, rather than the more suitable error code
VIR_ERR_OPERATION_INVALID

* src/storage/storage_driver.c: Fix error code when pool
  is not active
src/storage/storage_driver.c