From: Ian Jackson Subject: [OSSTEST PATCH 16/32] cr-ensure-disk-space: Move LogsPublish decomposition up Date: Tue, 24 Mar 2015 19:02:39 +0000 Message-ID: <1427223775-8592-17-git-send-email-ian.jackson@eu.citrix.com> References: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU79-00010E-DY for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 19:03:47 +0000 In-Reply-To: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org We are going to want this for the df. No functional change yet. Signed-off-by: Ian Jackson --- cr-ensure-disk-space | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cr-ensure-disk-space b/cr-ensure-disk-space index aeaf572..ff07b76 100755 --- a/cr-ensure-disk-space +++ b/cr-ensure-disk-space @@ -50,6 +50,9 @@ my $chkq= $dbh_tests->prepare("SELECT * FROM flights WHERE flight=?"); our @flights; our @sshopts= qw(-o batchmode=yes); +$c{LogsPublish} =~ m/\:/ or die "$c{LogsPublish} ?"; +my ($pubhost, $pubdir) = ($`,$'); #'; + for (;;) { open P, "df --block-size=1M -P . |" or die $!; $_=

; @@ -83,9 +86,6 @@ for (;;) { die "age $age" if $age < $c{LogsMinExpireAge}; - $c{LogsPublish} =~ m/\:/ or die "$c{LogsPublish} ?"; - my ($pubhost, $pubdir) = ($`,$'); #'; - printf "..."; my $spawn= sub { -- 1.7.10.4