[Fai-commit] r5772 - branches/experimental/patches
Michael Tautschnig
mt at alioth.debian.org
Tue Apr 20 08:17:53 UTC 2010
Author: mt
Date: 2010-04-20 08:17:51 +0000 (Tue, 20 Apr 2010)
New Revision: 5772
Added:
branches/experimental/patches/setup-storage_empty-vg
Modified:
branches/experimental/patches/series
Log:
Fix volume group size reading bug
Modified: branches/experimental/patches/series
===================================================================
--- branches/experimental/patches/series 2010-04-16 18:29:27 UTC (rev 5771)
+++ branches/experimental/patches/series 2010-04-20 08:17:51 UTC (rev 5772)
@@ -11,3 +11,4 @@
setup-storage_always-format
setup-storage_package
setup-storage_parted2.2
+setup-storage_empty-vg
Added: branches/experimental/patches/setup-storage_empty-vg
===================================================================
--- branches/experimental/patches/setup-storage_empty-vg (rev 0)
+++ branches/experimental/patches/setup-storage_empty-vg 2010-04-20 08:17:51 UTC (rev 5772)
@@ -0,0 +1,17 @@
+2010-04-20 Michael Tautschnig <mt at debian.org>
+
+ * setup-storage/Volumes.pm: Use VG size for volume group size, not space in
+ use. Thanks Mathieu Alorent for reporting this.
+Index: trunk/lib/setup-storage/Volumes.pm
+===================================================================
+--- trunk.orig/lib/setup-storage/Volumes.pm
++++ trunk/lib/setup-storage/Volumes.pm
+@@ -378,7 +378,7 @@
+ my %vg_info = get_volume_group_information($vg);
+ if (%vg_info) {
+ $FAI::current_lvm_config{$vg}{size} = &FAI::convert_unit(
+- $vg_info{alloc_pe_size} . $vg_info{alloc_pe_size_unit});
++ $vg_info{vg_size} . $vg_info{vg_size_unit});
+ } else {
+ $FAI::current_lvm_config{$vg}{size} = "0";
+ }
More information about the Fai-commit
mailing list