We are going to want another call site. No functional change.
Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> --- 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(); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel