/[smeserver]/rpms/e-smith-base+ldap/sme8/e-smith-base+ldap-4.19.1-get_raid_details_cciss.patch
ViewVC logotype

Contents of /rpms/e-smith-base+ldap/sme8/e-smith-base+ldap-4.19.1-get_raid_details_cciss.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Oct 7 19:21:54 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

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 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed