diff options
-rwxr-xr-x | kamikaze-fsck | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kamikaze-fsck b/kamikaze-fsck index 7b40e99..1eb3e4e 100755 --- a/kamikaze-fsck +++ b/kamikaze-fsck @@ -56,6 +56,9 @@ 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" >/dev/null; do + if [ $(($(date +%s)-start)) -gt 10 ]; then + pkill -9 -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0" + fi sleep 1 >&2 echo "running for $(($(date +%s)-start))" pkill -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0" |