]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStorageBackendLogicalCheckPool: Properly mark empty logical pools as active
authorPeter Krempa <pkrempa@redhat.com>
Tue, 8 Aug 2023 13:53:53 +0000 (15:53 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 10 Aug 2023 12:53:26 +0000 (14:53 +0200)
commitfa1a54baa59d244289ce666f9dc52d9eabca47f1
tree66ba342f30768c7063623de0986d48eebe419817
parent831b5a6bd6d72d58494018b7051894ccc1310c49
virStorageBackendLogicalCheckPool: Properly mark empty logical pools as active

The '/dev' filesystem convenience directory for a LVM volume group is
not created when the volume group is empty.

The logic in 'virStorageBackendLogicalCheckPool' which is used to see
whether a pool is active was first checking presence of the directory,
which failed for an empty VG.

Since the second step is virStorageBackendLogicalMatchPoolSource which
is checking mapping between configured PVs and the VG, we can simply
rely on the function to also check presence of the pool.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2228223
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_backend_logical.c