From f8fed7ba3c51369f1d1abc01b0569e91d18a83ca Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 8 Apr 2019 11:59:20 +0200 Subject: kamikaze-fsck: do not read whole cache --- kamikaze-fsck | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kamikaze-fsck b/kamikaze-fsck index 6858a8a..c7e779d 100755 --- a/kamikaze-fsck +++ b/kamikaze-fsck @@ -28,7 +28,7 @@ touch "${tmp_dir}/faulty-inode" while [ -f "${tmp_dir}/faulty-inode" ]; do if [ -s "${tmp_dir}/faulty-inode" ]; then - debugfs -w "$1" -R "$(cat "${tmp_dir}/faulty-inode")" + debugfs -w "$1" -R "$(uniq < "${tmp_dir}/faulty-inode")" fi rm "${tmp_dir}/faulty-inode" @@ -57,6 +57,7 @@ while [ -f "${tmp_dir}/faulty-inode" ]; do while pgrep -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"; do sleep 1 done + break fi done done -- cgit v1.2.3-70-g09d2