/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-4.18.0-raid_no.patch2
ViewVC logotype

Contents of /rpms/e-smith-base/sme8/e-smith-base-4.18.0-raid_no.patch2

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


Revision 1.1 - (show annotations) (download)
Tue Jun 12 18:30:35 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-base-4_18_0-58_el5_sme, e-smith-base-4_18_0-89_el5_sme, e-smith-base-4_18_0-82_el5_sme, e-smith-base-4_18_0-67_el5_sme, e-smith-base-4_18_0-88_el5_sme, e-smith-base-4_18_0-87_el5_sme, e-smith-base-4_18_0-77_el5_sme, e-smith-base-4_18_0-69_el5_sme, e-smith-base-4_18_0-81_el5_sme, e-smith-base-4_18_0-100_el5_sme, e-smith-base-4_18_0-72_el5_sme, e-smith-base-4_18_0-62_el5_sme, e-smith-base-4_18_0-61_el5_sme, e-smith-base-4_18_0-78_el5_sme, e-smith-base-4_18_0-60_el5_sme, e-smith-base-4_18_0-94_el5_sme, e-smith-base-4_18_0-66_el5_sme, e-smith-base-4_18_0-83_el5_sme, e-smith-base-4_18_0-59_el5_sme, e-smith-base-4_18_0-63_el5_sme, e-smith-base-4_18_0-92_el5_sme, e-smith-base-4_18_0-64_el5_sme, e-smith-base-4_18_0-101_el5_sme, e-smith-base-4_18_0-98_el5_sme, e-smith-base-4_18_0-102_el5_sme, e-smith-base-4_18_0-90_el5_sme, e-smith-base-4_18_0-104_el5_sme, e-smith-base-4_18_0-71_el5_sme, e-smith-base-4_18_0-103_el5_sme, e-smith-base-4_18_0-99_el5_sme, e-smith-base-4_18_0-73_el5_sme, e-smith-base-4_18_0-79_el5_sme, e-smith-base-4_18_0-75_el5_sme, e-smith-base-4_18_0-76_el5_sme
Import on branch sme8 of package e-smith-base-4.18.0-58.el5.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/sbin/e-smith/add_drive_to_raid mezzanine_patched_e-smith-base-4.18.0/root/sbin/e-smith/add_drive_to_raid
2 --- e-smith-base-4.18.0/root/sbin/e-smith/add_drive_to_raid 2007-05-31 11:04:43.000000000 -0600
3 +++ mezzanine_patched_e-smith-base-4.18.0/root/sbin/e-smith/add_drive_to_raid 2007-05-31 11:04:26.000000000 -0600
4 @@ -39,23 +39,23 @@
5 my %devices = $raid->get_raid_details();
6 my @devices = sort { $devices{$a}{DeviceSize} <=> $devices{$b}{DeviceSize} } keys %devices;
7
8 -die "System doesn't contain any raid devices" unless $#devices >= 0;
9 +die "There are no RAID devices configured\n" unless $#devices >= 0;
10
11 my %partitions = $raid->get_partitions();
12
13 my $minsize = 0;
14
15 -die "/dev/$newdev is not a block special device" unless -b "/dev/$newdev";
16 +die "/dev/$newdev is not a block special device\n" unless -b "/dev/$newdev";
17
18 for my $dev (@devices)
19 {
20 - die "/dev/$newdev is already in use" if grep m#^$newdev$#, @{$devices{$dev}{UsedDisks}};
21 + die "/dev/$newdev is already in use\n" if grep m#^$newdev$#, @{$devices{$dev}{UsedDisks}};
22 $minsize += $devices{$dev}{DeviceSize} + 65;
23 }
24
25 -die "/dev/$newdev is not large enough" unless $partitions{$newdev}{blocks} >= $minsize;
26 +die "/dev/$newdev is not large enough\n" unless $partitions{$newdev}{blocks} >= $minsize;
27
28 -die "/dev/$newdev already contains partitions" unless $force or ! grep m#^$newdev.+$#, keys %partitions;
29 +die "/dev/$newdev already contains partitions\n" unless $force or ! grep m#^$newdev.+$#, keys %partitions;
30
31 my $pid = open(STDERR, "|-");
32 die gettext("Can't fork"), ": $!\n" unless defined $pid;

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