From: Theodore Ts'o Date: Sun, 14 Mar 2010 23:02:57 +0000 (-0400) Subject: debugfs: Correctly show the allocation status of a block using logdump X-Git-Tag: v1.41.11~6 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=de2c477815dc6c842db60ef9187c7fddaaa3cd48;p=tools%2Fe2fsprogs.git debugfs: Correctly show the allocation status of a block using logdump The offset in the bitmap was not getting correctly calculated when the user specifics a block to track using "logdump -b " Addresses-Debian-Bug: #564084 Signed-off-by: "Theodore Ts'o" --- diff --git a/debugfs/logdump.c b/debugfs/logdump.c index 9a7108a..9364ce4 100644 --- a/debugfs/logdump.c +++ b/debugfs/logdump.c @@ -619,7 +619,7 @@ static void dump_metadata_block(FILE *out_file, struct journal_source *source, int offset; super = current_fs->super; - offset = ((fs_blocknr - super->s_first_data_block) % + offset = ((block_to_dump - super->s_first_data_block) % super->s_blocks_per_group); fprintf(out_file, " (block bitmap for block %u: "