From 9776023fc9890863ddd6b54c53c7c40001a351d3 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 30 Apr 2014 17:40:29 -0400 Subject: lib/garbage.sh: Add some verbose output. --- (limited to 'lib/garbage.sh') diff --git a/lib/garbage.sh b/lib/garbage.sh index 9f3bd33..3a0ca97 100644 --- a/lib/garbage.sh +++ b/lib/garbage.sh @@ -20,6 +20,8 @@ [ "x${_GARBAGE_SM+set}" = 'xset' ] && return 0 _GARBAGE_SM=1 +use locale +use output use dir collect_garbage() @@ -30,6 +32,8 @@ collect_garbage() local dirs= local file= + info_v "$(get_msg 'collecting_garbage')" + # NB: The %s format conversion specifier is not specified by POSIX, but # it is supported by the GNU and BusyBox implementations of date. cur_time=$(date '+%s') @@ -43,6 +47,7 @@ collect_garbage() break fi while read -r dirs file; do + info_v "$(get_msg 'collecting_garbage_file')" "${file}" rm -f "${base_dir}/${file}" while [ ${dirs} -gt 0 ]; do file="${file%/*}" @@ -61,6 +66,8 @@ mark_pool_garbage() local file="${1}" local time= + info_v "$(get_msg 'marking_garbage_file')" "${file}" + # NB: The %s format conversion specifier is not specified by POSIX, but # it is supported by the GNU and BusyBox implementations of date. time=$(date '+%s') -- cgit v0.9.1