Whamcloud - gitweb
e2fsck: print runs of duplicate blocks instead of all of them
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 15 Mar 2014 16:12:35 +0000 (12:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 15 Mar 2014 16:12:37 +0000 (12:12 -0400)
commit28b966d7c667049f19a2947441ed29a95b415469
treece3d593cceb8a7c3ba88cd821844cb63117181fa
parentacbca26e254f0c39ea07024f49ba40855ba31070
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>
e2fsck/pass1b.c
e2fsck/problem.c
e2fsck/problem.h
tests/f_bbfile/expect.1
tests/f_dup/expect.1
tests/f_dup2/expect.1
tests/f_dup_ba/expect.1
tests/f_dup_resize/expect.1
tests/f_dupfsblks/expect.1
tests/f_dupsuper/expect.1