From cc710e3dd3e8cd0b635901e83fbda8ae5c7ef90b Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 27 Sep 2013 16:17:52 +0200 Subject: [PATCH] cd somewhere else so the unmount works --- cleaner.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cleaner.sh b/cleaner.sh index b0a4312..76beb38 100755 --- a/cleaner.sh +++ b/cleaner.sh @@ -27,8 +27,8 @@ LASTLIST="root home homeroot" # Autosnaps to keep. Counting/Considering *.snap only. There should be adate_*.snap snapshots only. let MINSNAPCNT=3*5 -let MAXSNAPCNT=3*300*10 -MAXSPACEPERCENT=80 +let MAXSNAPCNT=3*300 +MAXSPACEPERCENT=90 echo "***START: `date`***" if [ -e /tmp/btrfs_cleaner.lock ]; then @@ -115,7 +115,9 @@ while [ $LOOPDEL -eq 2 ]; do fi done +cd /tmp umount /mnt/btrfs &> /dev/null rm /tmp/btrfs_cleaner.lock +ps aux | grep "\[btrfs-cleaner\]" echo "***END: `date`***" -- 2.43.0