diff options
-rwxr-xr-x | kamikaze-fsck | 5 |
1 files 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 |