summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-01 16:53:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-01 16:53:12 +0000
commit90dd78b9416763ec219ef71e221c50024e767651 (patch)
tree5aa46c59ff835daa130870cc8a4519f0ffe7f22a /perl-install/devices.pm
parent49b4199d710a43bbd0cd6a6acbb8d952853e6595 (diff)
downloaddrakx-backup-do-not-use-90dd78b9416763ec219ef71e221c50024e767651.tar
drakx-backup-do-not-use-90dd78b9416763ec219ef71e221c50024e767651.tar.gz
drakx-backup-do-not-use-90dd78b9416763ec219ef71e221c50024e767651.tar.bz2
drakx-backup-do-not-use-90dd78b9416763ec219ef71e221c50024e767651.tar.xz
drakx-backup-do-not-use-90dd78b9416763ec219ef71e221c50024e767651.zip
add handling for cciss (compaq smart array alike)
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 ],