[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1311090411-13766-1-git-send-email-xiaoqiangnk@gmail.com>
Date: Tue, 19 Jul 2011 23:46:51 +0800
From: Yongqiang Yang <xiaoqiangnk@...il.com>
To: linux-ext4@...r.kernel.org
Cc: tytso@....edu, Yongqiang Yang <xiaoqiangnk@...il.com>
Subject: [PATCH] e2fsck: fix error in computing blocks of the ending group
If the blocks of a filesystem is a multiple of blocks_per_group,
blocks of the ending group is computed wrongly. This patch computes
it by substracting blocks processed from blocks of the filesystem.
Signed-off-by: Yongqiang Yang <xiaoqiangnk@...il.com>
---
e2fsck/pass5.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c
index f9d746c..7c4e336 100644
--- a/e2fsck/pass5.c
+++ b/e2fsck/pass5.c
@@ -227,7 +227,7 @@ redo_counts:
if (group == (int)fs->group_desc_count - 1)
cmp_block =
EXT2FS_NUM_B2C(fs,
- ext2fs_blocks_count(fs->super) % fs->super->s_blocks_per_group);
+ ext2fs_blocks_count(fs->super) - i);
}
bitmap = 0;
--
1.7.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists