]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storageBackendProbeTarget: Don't fail if backing store can't be parsed
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Feb 2021 12:51:51 +0000 (13:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 1 Mar 2021 14:44:20 +0000 (15:44 +0100)
commit104db1951d3abfd8cb363b8e8070f712044bc645
tree62b374fe76a7c69afe2f33f09159f0a818619fcb
parente83fbead66c50de3c030b58f48f24f79c87f1981
storageBackendProbeTarget: Don't fail if backing store can't be parsed

When the backing store of the image can't be parsed
virStorageSourceNewFromBacking returns -1. storageBackendProbeTarget
then also fails which makes the pool refresh fail or even the storage
pool becomes inactive after (re)start of libvirtd.

In situations when we can't access the backing store via network we
just report the backing store string, thus we can do the same thing for
unparsable backing store to prevent the pool from going offline.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_util.c