]> xenbits.xensource.com Git - libvirt.git/commit
storage: gluster: Implement 'checkPool' method so that state is restored
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Mar 2017 11:18:43 +0000 (13:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 5 Apr 2017 10:21:17 +0000 (12:21 +0200)
commita200ebbc6f2cc5835daf0ddda9a347b7311a7877
tree1bf5832621ee6741bbd814dc07fb3d038ce43e24
parent8e0139869a0e8775c8a099ff2c899ac90373261d
storage: gluster: Implement 'checkPool' method so that state is restored

After restart of libvirtd the 'checkPool' method is supposed to validate
that the pool is online. Since libvirt then refreshes the pool contents
anyways just return whether the pool was supposed to be online so that
the code can be reached. This is necessary since if a pool does not
implement the method it's automatically considered as inactive.

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