From c5c659a4940037a5c1820c32256cfa054cc5f0ee Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 7 Aug 2019 18:33:42 +0200 Subject: kamikaze-fsck: change output, kill repeatedly --- kamikaze-fsck | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kamikaze-fsck b/kamikaze-fsck index 1ab7b93..7b40e99 100755 --- a/kamikaze-fsck +++ b/kamikaze-fsck @@ -55,9 +55,10 @@ while [ -f "${tmp_dir}/faulty-inode" ]; do start=$(date +%s) pkill -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0" - while pgrep -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"; do + while pgrep -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0" >/dev/null; do sleep 1 - >&2 echo $(($(date +%s)-start)) + >&2 echo "running for $(($(date +%s)-start))" + pkill -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0" done break fi -- cgit v1.2.3-70-g09d2