From d854a71803deeca5b4650b6efe23f99d90f19064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominic=20J=C3=A4ger?= Date: Wed, 13 Jan 2021 13:19:54 +0100 Subject: [PATCH] lvm: Fix #3159: Show RAID LVs as storage content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LVM RAID logical volumes (including mirrors) can be valid disk images, so they should show up in storage content listings (for example pvesm list). Including LV types is safer than excluding, especially because of possible additional types in the future. Co-developed-by: Fabian Grünbichler Signed-off-by: Dominic Jäger --- PVE/Storage/LVMPlugin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index 73e8e48..df49b76 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -446,7 +446,8 @@ sub list_images { next if $scfg->{tagged_only} && !&$check_tags($info->{tags}); - next if $info->{lv_type} ne '-'; + # Allow mirrored and RAID LVs + next if $info->{lv_type} !~ m/^[-mMrR]$/; my $volid = "$storeid:$volname";