1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.1/root/sbin/e-smith/console-menu-items/manageRAID.pl mezzanine_patched_e-smith-base-4.18.1/root/sbin/e-smith/console-menu-items/manageRAID.pl |
2 |
--- e-smith-base-4.18.1/root/sbin/e-smith/console-menu-items/manageRAID.pl 2008-03-26 16:49:00.000000000 +0000 |
3 |
+++ mezzanine_patched_e-smith-base-4.18.1/root/sbin/e-smith/console-menu-items/manageRAID.pl 2008-07-22 22:16:12.000000000 +0100 |
4 |
@@ -213,8 +213,12 @@ |
5 |
if ( m:\s+(\d+)\s+(\d+)\s+(\d+).*/dev/([\w\/]+): ) |
6 |
{ |
7 |
$devices{$dev}{$1} = $_; |
8 |
- my $used_disk = $4; |
9 |
- $used_disk =~ s/\d+//; |
10 |
+ my $used_disk = $4; |
11 |
+ if (/(rd|ida|cciss|i2o)\//) { |
12 |
+ $used_disk =~ s/p\d+$//; |
13 |
+ } else { |
14 |
+ $used_disk =~ s/\d+//; |
15 |
+ } |
16 |
push (@{$devices{$dev}{UsedDisks}}, $used_disk); |
17 |
} |
18 |
} |