/[smeserver]/rpms/e-smith-base/sme9/e-smith-base-5.4.0-add_new_disk_to_raid1.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme9/e-smith-base-5.4.0-add_new_disk_to_raid1.patch

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


Revision 1.2 - (hide annotations) (download)
Mon Mar 24 03:05:35 2014 UTC (10 years, 7 months ago) by wellsi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Sun Mar 23 2014 Ian Wells <esmith@wellsi.com> 5.6.0-1.sme
- Roll new stream to remove obsolete images [SME: 7962]

1 burnat 1.1 diff -bruN e-smith-base-5.4.0.old/root/sbin/e-smith/console-menu-items/manageRAID.pl e-smith-base-5.4.0/root/sbin/e-smith/console-menu-items/manageRAID.pl
2     --- e-smith-base-5.4.0.old/root/sbin/e-smith/console-menu-items/manageRAID.pl 2013-11-13 10:22:54.190006853 +0100
3     +++ e-smith-base-5.4.0/root/sbin/e-smith/console-menu-items/manageRAID.pl 2013-11-13 13:18:01.226769374 +0100
4     @@ -66,7 +66,7 @@
5     next;
6     }
7    
8     - next if ($devices{$dev}{State} =~ /clean|active/);
9     + next if ($devices{$dev}{State} =~ /^(clean|active)\s*$/);
10    
11     push @unclean, "$dev => " . $devices{$dev}{State};
12     }
13     @@ -123,9 +123,10 @@
14     return;
15     }
16    
17     - unless (scalar keys %free_disks == 1)
18     + unless (scalar keys %used_disks == 1 and
19     + scalar keys %free_disks == scalar keys %used_disks)
20     {
21     - $text .= gettext("The free disk count must equal one.") .
22     + $text .= gettext("The free and used disk count must equal one.") .
23     "\n\n" .
24     gettext("Manual intervention may be required.") . "\n\n" .
25     $disk_status;

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