summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-07 18:33:42 +0200
committerErich Eckner <git@eckner.net>2019-08-07 18:33:42 +0200
commitc5c659a4940037a5c1820c32256cfa054cc5f0ee (patch)
tree0bd02f49369230afad1ba6fedc2bbc67c78c646a
parenta22cc4db13e46a5e4dcb1216ae250bdafcf8607f (diff)
downloadkamikaze-fsck-c5c659a4940037a5c1820c32256cfa054cc5f0ee.tar.xz
kamikaze-fsck: change output, kill repeatedly
-rwxr-xr-xkamikaze-fsck5
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