put the diff output in seq.full, where its more useful for debugging.
authorfsgqa <fsgqa>
Fri, 10 May 2002 05:56:02 +0000 (05:56 +0000)
committerfsgqa <fsgqa>
Fri, 10 May 2002 05:56:02 +0000 (05:56 +0000)
031

diff --git a/031 b/031
index 49b988ae2f47edabf8b193a42978e4aefd824cd1..95f6f5665015ac56aaef6f36da0fa1ef6d154dc2 100755 (executable)
--- a/031
+++ b/031
@@ -59,7 +59,11 @@ _check_repair()
        do
                echo "Repairing, iteration $i" | tee -a $seq.full
                xfs_repair $SCRATCH_DEV 2>&1 | tee -a $seq.full >$tmp.$i
-               diff $tmp.0 $tmp.$i
+               diff $tmp.0 $tmp.$i >> $seq.full
+               if [ $? -ne 0 ]; then
+                       echo "ERROR: repair round $i differs (see $seq.full)"
+                       break
+               fi
                # echo all interesting stuff...
                perl -ne '
                        s/(rebuilding directory inode) (\d+)/\1 INO/g;