]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
cr-ensure-disk-space: Do df check on target.
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 9 Mar 2015 16:03:54 +0000 (12:03 -0400)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 24 Mar 2015 18:56:02 +0000 (18:56 +0000)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
cr-ensure-disk-space

index 31880f74c76818d3084c8ac835a9e1227d6dc7f0..6f129bd62a95d2e4938c9f396d9907fe535210c1 100755 (executable)
@@ -60,7 +60,7 @@ sub ontarget ($) {
 }
 
 for (;;) {
-    open P, "df --block-size=1M -P . |" or die $!;
+    open P, "-|", ontarget "df --block-size=1M -P $pubdir" or die $!;
     $_= <P>;
     m/^filesystem/i or die "$_ ?";
     $_= <P>;