diff options
author | Erich Eckner <git@eckner.net> | 2019-08-07 18:33:42 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-08-07 18:33:42 +0200 |
commit | c5c659a4940037a5c1820c32256cfa054cc5f0ee (patch) | |
tree | 0bd02f49369230afad1ba6fedc2bbc67c78c646a | |
parent | a22cc4db13e46a5e4dcb1216ae250bdafcf8607f (diff) | |
download | kamikaze-fsck-c5c659a4940037a5c1820c32256cfa054cc5f0ee.tar.xz |
kamikaze-fsck: change output, kill repeatedly
-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 |