]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-xen-build-prep: Abolish "background" parameter to lvextend
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 11 Jun 2014 17:13:10 +0000 (18:13 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 18 May 2015 14:53:42 +0000 (15:53 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ts-xen-build-prep

index 23c901b76361c391e32d6876846f4c058fee2d97..a9c9e4a3a04560a8a833745902809615a7ea607f 100755 (executable)
@@ -65,11 +65,11 @@ sub lvextend_stage1 () {
         fi
 END
 
-    lvextend1('disk extend initial',       300);
+    lvextend1('disk extend initial',       300);
 }
 
 sub lvextend_stage2 () {
-    lvextend1('disk extend background', undef, 1);
+    lvextend1('disk extend subsequent',  undef);
 }
 
 sub vginfo () {
@@ -80,7 +80,7 @@ sub vginfo () {
 }
 
 sub lvextend1 ($$$) {
-    my ($what, $max_more_gb, $background)  = @_;
+    my ($what, $max_more_gb)  = @_;
 
     my $lv= "/dev/$vg/root";
 
@@ -156,11 +156,7 @@ sub lvextend1 ($$$) {
     my $timeout = 2000 + int($pe_size * 0.000003 * $more_pe);
     logm("$what: ${pe_size}k x $more_pe (timeout=$timeout)");
     my $cmd = "resize2fs $lv";
-    if (!$background) {
-       target_cmd_root($ho, $cmd, $timeout);
-    } else {
-       target_cmd_root($ho, "$cmd >>resizefs.log 2>&1 </dev/null &", 30);
-    }
+    target_cmd_root($ho, $cmd, $timeout);
 }
 
 sub prep () {