]> xenbits.xensource.com Git - libvirt.git/commit
storage: Fix error reporting when looking up storage pool sources
authorPeter Krempa <pkrempa@redhat.com>
Tue, 10 Jan 2017 17:29:54 +0000 (18:29 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 18 Jan 2017 09:45:15 +0000 (10:45 +0100)
commit7bdb4b8fda47bec838cd1cf1a320d0af3d4fe742
tree171dda98bbc16fccebc31e59c29161aeee75f0b2
parent7ab0080bed5ea671d244da1a7cd8856ac80e033b
storage: Fix error reporting when looking up storage pool sources

In commit 4090e15399 we went back from reporting no errors if no storage
pools were found on a given host to reporting a bad error. And only in
cases when gluster was not installed.

Report a less bad error in case there are no volumes. Also report the
error when gluster is installed but no volumes were found, since
virStorageBackendFindGlusterPoolSources would return success in that
case.
src/storage/storage_backend.c
src/storage/storage_backend_fs.c