RAID device names can be multi-digit

This commit is contained in:
Jamie Cameron
2014-09-01 07:45:14 -07:00
parent 7e3261c43c
commit cb2771d4ce

View File

@@ -1099,9 +1099,9 @@ else {
local @ropts;
foreach $c (@$conf) {
if ($c->{'active'}) {
$c->{'value'} =~ /(\d+)$/;
push(@ropts, [ $c->{'value'},
&text('linux_rdev',
substr($c->{'value'}, -1)) ]);
&text('linux_rdev', "$1") ]);
$rfound++ if ($loc eq $c->{'value'});
}
}