Commit [28b966] Maximize Restore History

e2fsck: print runs of duplicate blocks instead of all of them

When pass1 finds blocks that are mapped to multiple files, it will
print every duplicated block. If there are long sequences of
duplicate blocks (e.g. the e_pblk field is wrong in an extent), this
can cause a gigantic flood of output when a range could convey the
same information. Therefore, teach pass1b to print ranges when
possible.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

Darrick J. Wong Darrick J. Wong 2014-03-15

Theodore Ts'o Theodore Ts'o 2014-03-15

changed e2fsck/pass1b.c
changed e2fsck/problem.c
changed e2fsck/problem.h
changed tests/f_bbfile/expect.1
changed tests/f_dup/expect.1
changed tests/f_dup2/expect.1
changed tests/f_dup_ba/expect.1
changed tests/f_dup_resize/expect.1
changed tests/f_dupfsblks/expect.1
changed tests/f_dupsuper/expect.1
e2fsck/pass1b.c Diff Switch to side-by-side view
Loading...
e2fsck/problem.c Diff Switch to side-by-side view
Loading...
e2fsck/problem.h Diff Switch to side-by-side view
Loading...
tests/f_bbfile/expect.1 Diff Switch to side-by-side view
Loading...
tests/f_dup/expect.1 Diff Switch to side-by-side view
Loading...
tests/f_dup2/expect.1 Diff Switch to side-by-side view
Loading...
tests/f_dup_ba/expect.1 Diff Switch to side-by-side view
Loading...
tests/f_dup_resize/expect.1 Diff Switch to side-by-side view
Loading...
tests/f_dupfsblks/expect.1 Diff Switch to side-by-side view
Loading...
tests/f_dupsuper/expect.1 Diff Switch to side-by-side view
Loading...