summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 89318e1e9..3ea25bc5e 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -74,11 +74,11 @@ sub entry {
$type = c::S_IFBLK();
$major = 48 + $1;
$minor = 8 * $2 + $4;
- } elsif (m|ida/c(\d+)d(\d+)(p(\d+))?|) {
+ } elsif (m,(ida|cciss)/c(\d+)d(\d+)(?:p(\d+))?,) {
# Compaq Smart Array "ida/c0d0{p1}"
$type = c::S_IFBLK();
- $major = 72 + $1;
- $minor = 16 * $2 + ($4 || 0);
+ $major = ($1 eq 'ida' ? 72 : 104) + $2;
+ $minor = 16 * $3 + ($4 || 0);
} elsif (/(.*)(\d+)$/) {
($type, $major, $minor) =
@{ ${{"fd" => [ c::S_IFBLK(), 2, 0 ],