# Copyright (C) 2008-2012 by Titanium Mirror, Inc.
# Author: R. Steve McKown <smckown@titaniummirror.com>
#
# Copyright (C) 2008-2012 by Titanium Mirror, Inc.
# Author: R. Steve McKown <smckown@titaniummirror.com>
#
# Other disk contents shall not be removed.
dstblks=$(df -P "$EXTFS" | grep "$EXTFS" | awk '{ print $4 }')
while [ $dstblks -le $srcblks ]; do
info "Only $dstblks free on $EXTFS"
# Other disk contents shall not be removed.
dstblks=$(df -P "$EXTFS" | grep "$EXTFS" | awk '{ print $4 }')
while [ $dstblks -le $srcblks ]; do
info "Only $dstblks free on $EXTFS"
if [ -z "$oldest" ]; then
cleanup 1 "out of space: need $srcblks KB, have $dstblks KB"
elif [ -d "$EXTFS/$oldest" ]; then
if [ -z "$oldest" ]; then
cleanup 1 "out of space: need $srcblks KB, have $dstblks KB"
elif [ -d "$EXTFS/$oldest" ]; then