[pve-devel] [PATCH storage] correctly parse cciss devices in get_disks
Dominik Csapak
d.csapak at proxmox.com
Wed Oct 5 11:54:07 CEST 2016
cciss maps the devices to
/sys/block/cciss!cXdY
and not to
/sys/block/cXdY
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/Diskmanage.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
index 1befd9e..97c6f7b 100644
--- a/PVE/Diskmanage.pm
+++ b/PVE/Diskmanage.pm
@@ -370,10 +370,10 @@ sub get_disks {
# vdX: virtual block device
# xvdX: xen virtual block device
# nvmeXnY: nvme devices
- # cXnY: cciss devices
+ # cciss!cXnY: cciss devices
return if $dev !~ m/^(h|s|x?v)d[a-z]+$/ &&
$dev !~ m/^nvme\d+n\d+$/ &&
- $dev !~ m/^c\d+d\d+$/;
+ $dev !~ m/^cciss\!c\d+d\d+$/;
my $data = get_udev_info($dev);
return if !defined($data);
--
2.1.4
More information about the pve-devel
mailing list