]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storagePoolRefreshFailCleanup: Clear volumes on failed refresh
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Feb 2019 17:07:02 +0000 (18:07 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 16 Mar 2019 06:50:51 +0000 (07:50 +0100)
commitccc7ffb4efd7948719d8fce604024db45e8cd1bb
treee90bd084f42bd6c6567b5d827fc89bab6948bc80
parentbd45cedbe52fa4a0386dc8811a579f482caff30e
storagePoolRefreshFailCleanup: Clear volumes on failed refresh

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@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/storage/storage_backend_gluster.c
src/storage/storage_backend_logical.c
src/storage/storage_backend_rbd.c
src/storage/storage_driver.c
src/storage/storage_util.c