[Fai-commit] r5382 - people/michael/experimental/patches
Michael Tautschnig
mt at alioth.debian.org
Tue Apr 28 13:09:30 UTC 2009
Author: mt
Date: 2009-04-28 13:09:30 +0000 (Tue, 28 Apr 2009)
New Revision: 5382
Modified:
people/michael/experimental/patches/setup-storage_raid-preserve-entry-missing
Log:
Fixed function lookup (thanks Jean Spirat for testing)
Modified: people/michael/experimental/patches/setup-storage_raid-preserve-entry-missing
===================================================================
--- people/michael/experimental/patches/setup-storage_raid-preserve-entry-missing 2009-04-28 11:56:01 UTC (rev 5381)
+++ people/michael/experimental/patches/setup-storage_raid-preserve-entry-missing 2009-04-28 13:09:30 UTC (rev 5382)
@@ -12,7 +12,7 @@
# compute the next available index - the size of the entry
- my $vol_id = scalar (keys %{ $FAI::configs{RAID}{volumes} });
+ my $vol_id = 0;
-+ foreach my $ex_vol_id (&numsort(keys %{ $FAI::configs{RAID}{volumes} })) {
++ foreach my $ex_vol_id (&FAI::numsort(keys %{ $FAI::configs{RAID}{volumes} })) {
+ defined ($FAI::configs{RAID}{volumes}{$ex_vol_id}{mode}) or last;
+ $vol_id++;
+ }
More information about the Fai-commit
mailing list