[libvirt] [PATCH v2 7/8] storagePoolRefreshFailCleanup: Clear volumes on failed refresh

Pavel Hrdina phrdina at redhat.com
Fri Mar 15 14:23:10 UTC 2019


On Wed, Mar 06, 2019 at 03:59:17PM +0100, Michal Privoznik wrote:
> If pool refresh failed, then the internal table of volumes is
> probably left in inconsistent or incomplete state anyways. Clear
> it out then. This has an advantage that we can move the
> virStoragePoolObjClearVols() from those very few backends that
> do call it.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/storage/storage_backend_gluster.c |  2 --
>  src/storage/storage_backend_logical.c | 12 +++---------
>  src/storage/storage_backend_rbd.c     |  4 +---
>  src/storage/storage_driver.c          |  2 ++
>  src/storage/storage_util.c            |  2 --
>  5 files changed, 6 insertions(+), 16 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190315/2c3c3646/attachment-0001.sig>


More information about the libvir-list mailing list