From patchwork Mon Jul 25 10:34:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9245537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 25AE260757 for ; Mon, 25 Jul 2016 10:38:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16A2426E39 for ; Mon, 25 Jul 2016 10:38:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AFB92705B; Mon, 25 Jul 2016 10:38:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8B56D26E39 for ; Mon, 25 Jul 2016 10:38:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRdE0-000770-QI; Mon, 25 Jul 2016 10:35:04 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRdDy-00076L-Te for xen-devel@lists.xenproject.org; Mon, 25 Jul 2016 10:35:03 +0000 Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id 64/80-30284-65BE5975; Mon, 25 Jul 2016 10:35:02 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRWlGSWpSXmKPExsXitHSDvW7o66n hBg2fDC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ox5s5qZC7ayVmxqn8DSwLibpYuRk0NCwF9i VVcPK4jNJqAr0bTlL1sXIweHiICKxO29BiAms0CJxN8PUiAVwgIuEquvNrCChFkEVCUOr2QDC fMKeEosn/qNEWKgnMT54z+ZQWxOAS+JWbN7wRYJAdXsbZ3OCNIqJKAmMXd9PESroMTJmU/ASp gFJCQOvnjBDDGGW+L26anMExj5ZiEpm4WkbAEj0ypGjeLUorLUIl1DU72kosz0jJLcxMwcXUM DU73c1OLixPTUnMSkYr3k/NxNjMBgYgCCHYwN2z0PMUpyMCmJ8k5cMzVciC8pP6UyI7E4I76o NCe1+BCjDAeHkgSv+CugnGBRanpqRVpmDjCsYdISHDxKIrwsIGne4oLE3OLMdIjUKUZdjgU/b q9lEmLJy89LlRLnffsSqEgApCijNA9uBCzGLjHKSgnzMgIdJcRTkFqUm1mCKv+KUZyDUUmYlw tkFU9mXgncpldARzABHbGAZzLIESWJCCmpBka2TcKHFz5fpqF/M3B93Enm+cqhu17d5EmfUNN 8N6UlUCRx8r2ug8bVNYt7/MKf/Q+4VnH2173AMxU/3aceY7glb+ov2pRT6npomYuW6jTjz5qX tu+uuMvtqtu3paymY9+vdLenky58/f49QGu2OeMXhvcWoaJGntkT1kx6JtbUPq/s7TLBBVeVW IozEg21mIuKEwF9g6rTrAIAAA== X-Env-Sender: prvs=0072d1cdf=Ian.Jackson@citrix.com X-Msg-Ref: server-12.tower-206.messagelabs.com!1469442900!14825344!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 27165 invoked from network); 25 Jul 2016 10:35:01 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 25 Jul 2016 10:35:01 -0000 X-IronPort-AV: E=Sophos;i="5.28,419,1464652800"; d="scan'208";a="375182731" From: Ian Jackson To: Date: Mon, 25 Jul 2016 11:34:42 +0100 Message-ID: <1469442883-26212-2-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1469442883-26212-1-git-send-email-ian.jackson@eu.citrix.com> References: <1469442883-26212-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Jackson , Wei Liu Subject: [Xen-devel] [OSSTEST PATCH 2/3] cr-ensure-disk-space: Break out quit_ok X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP We are going to want another call site. No functional change. Signed-off-by: Ian Jackson --- cr-ensure-disk-space | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cr-ensure-disk-space b/cr-ensure-disk-space index bb98835..6a9781a 100755 --- a/cr-ensure-disk-space +++ b/cr-ensure-disk-space @@ -61,6 +61,13 @@ sub check_space () { return $space >= logcfg('MinSpaceMby'); } +sub quit_ok () { + printf "ok.\n"; + exit 0; +} + +$|=1; + exit 0 if check_space; my $lock = "$c{GlobalLockDir}/publish-lock"; @@ -156,5 +163,4 @@ db_retry($dbh_tests,[], sub { } }); -printf "ok.\n"; -exit 0; +quit_ok();