[PATCH] virStorageBackendLogicalCheckPool: Properly mark empty logical pools as active

Ján Tomko jtomko at redhat.com
Wed Aug 9 08:03:55 UTC 2023


On a Tuesday in 2023, Peter Krempa wrote:
>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 at redhat.com>
>---
> src/storage/storage_backend_logical.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230809/fff6ed98/attachment.sig>


More information about the libvir-list mailing list