mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-01 05:53:56 +08:00
e2fsck: print cluster ranges when encountering bitmap errors
If pass5 finds bitmap errors in a range of clusters, don't print each cluster number individually when we could print only the start and end cluster number. e2fsck already does this for the non-bigalloc case. Reviewed-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
5797cb017c
commit
69beadcfb2
@ -411,8 +411,8 @@ redo_counts:
|
||||
save_problem = problem;
|
||||
} else {
|
||||
if ((problem == save_problem) &&
|
||||
(pctx.blk2 == i-1))
|
||||
pctx.blk2++;
|
||||
(pctx.blk2 == i - EXT2FS_CLUSTER_RATIO(fs)))
|
||||
pctx.blk2 += EXT2FS_CLUSTER_RATIO(fs);
|
||||
else {
|
||||
print_bitmap_problem(ctx, save_problem, &pctx);
|
||||
pctx.blk = pctx.blk2 = i;
|
||||
|
Loading…
Reference in New Issue
Block a user