1 |
slords |
1.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-11-12 10:26:22.000000000 -0700 |
3 |
|
|
+++ mezzanine_patched_e-smith-base-4.18.0/root/sbin/e-smith/add_drive_to_raid 2007-11-12 10:25:49.000000000 -0700 |
4 |
|
|
@@ -109,7 +109,8 @@ |
5 |
|
|
@partitions = sort grep m#^$newdev.+$#, keys %partitions; |
6 |
|
|
if ( $#devices == $#partitions ) { |
7 |
|
|
foreach my $part ( 0..($#devices-1) ) { |
8 |
|
|
- $good &= $partitions{$partitions[$part]}{blocks} == $devices{$devices[$part]}{DeviceSize} + 64; |
9 |
|
|
+ $good &= $partitions{$partitions[$part]}{blocks} >= $devices{$devices[$part]}{DeviceSize} + 64; |
10 |
|
|
+ $good &= $partitions{$partitions[$part]}{blocks} <= $devices{$devices[$part]}{DeviceSize} + 68; |
11 |
|
|
$good &= -b "/dev/$partitions[$part]" || 0; |
12 |
|
|
} |
13 |
|
|
$good &= $partitions{$partitions[$#devices]}{blocks} >= $devices{$devices[$#devices]}{DeviceSize} + 64; |