[Fai-commit] r5000 - trunk/lib/setup-storage

mt at alioth.debian.org mt at alioth.debian.org
Thu Jun 26 21:02:53 UTC 2008


Author: mt
Date: 2008-06-26 21:02:52 +0000 (Thu, 26 Jun 2008)
New Revision: 5000

Modified:
   trunk/lib/setup-storage/Sizes.pm
Log:
never scale logical volume sizes beyond the specified maximum


Modified: trunk/lib/setup-storage/Sizes.pm
===================================================================
--- trunk/lib/setup-storage/Sizes.pm	2008-06-25 06:58:46 UTC (rev 4999)
+++ trunk/lib/setup-storage/Sizes.pm	2008-06-26 21:02:52 UTC (rev 5000)
@@ -246,6 +246,7 @@
     my $redist_factor = 0;
     $redist_factor = ($vg_size - $min_space) / ($max_space - $min_space)
       if ($max_space > $min_space);
+    $redist_factor = 1.0 if ($redist_factor > 1.0);
 
     # update all sizes that are still ranges
     foreach my $lv (@redist_list) {




More information about the Fai-commit mailing list