[Fai-commit] r5754 - people/michael/experimental/patches

Michael Tautschnig mt at alioth.debian.org
Thu Apr 8 14:49:01 UTC 2010


Author: mt
Date: 2010-04-08 14:49:00 +0000 (Thu, 08 Apr 2010)
New Revision: 5754

Modified:
   people/michael/experimental/patches/setup-storage_resize2fs
Log:
bugfix

Modified: people/michael/experimental/patches/setup-storage_resize2fs
===================================================================
--- people/michael/experimental/patches/setup-storage_resize2fs	2010-04-06 21:48:32 UTC (rev 5753)
+++ people/michael/experimental/patches/setup-storage_resize2fs	2010-04-08 14:49:00 UTC (rev 5754)
@@ -25,7 +25,7 @@
 +        if (($FAI::configs{$config}{volumes}{$lv}{filesystem} =~
 +            /^ext[23]$/) && &FAI::in_path("resize2fs")) {
 +          my $block_count = POSIX::floor($lv_size->{eff_size} / 512);
-+          &FAI::push_command( "resize2fs /dev/$vg/$lv $block_count",
++          &FAI::push_command( "resize2fs /dev/$vg/$lv ${block_count}s",
 +            "vg_enabled_$vg,$lv_rm_pre", "lv_shrink_$vg/$lv" );
 +        } else {
 +          &FAI::push_command( "parted -s /dev/$vg/$lv resize 1 0 " . $lv_size->{eff_size} .  "B",
@@ -42,7 +42,7 @@
 +        if (($FAI::configs{$config}{volumes}{$lv}{filesystem} =~
 +            /^ext[23]$/) && &FAI::in_path("resize2fs")) {
 +          my $block_count = POSIX::floor($lv_size->{eff_size} / 512);
-+          &FAI::push_command( "resize2fs /dev/$vg/$lv $block_count",
++          &FAI::push_command( "resize2fs /dev/$vg/$lv ${block_count}s",
 +            "vg_enabled_$vg,$lv_rm_pre,lv_grow_$vg/$lv", "exist_/dev/$vg/$lv" );
 +        } else {
 +          &FAI::push_command( "parted -s /dev/$vg/$lv resize 1 0 " . $lv_size->{eff_size} .  "B",
@@ -105,7 +105,7 @@
 +    ##   NTFS case
 +    ##   my $block_count = $part->{size}->{eff_size} / 512;
 +    ##   &FAI::push_command( "resize2fs " . &FAI::make_device_name($disk, $p) .
-+    ##     " $block_count", "rebuilt_" . &FAI::make_device_name($disk, $p) . $deps,
++    ##     " ${block_count}s", "rebuilt_" . &FAI::make_device_name($disk, $p) . $deps,
 +    ##     "resized_" .  &FAI::make_device_name($disk, $p) );
      } else {
        &FAI::push_command( "parted -s $disk resize $p ${start}B ${end}B",




More information about the Fai-commit mailing list