tags 564084 +pending
thanks

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564084

On Thu, Jan 07, 2010 at 10:57:25PM +0700, Anon Sricharoenchai wrote:
> 
> *** Please type your report below this line ***
> "logdump -b<block>" command in debugfs show incorrect allocation status
> in block bitmap

Thanks for reporting this bug.  I believe a much simpler fix for this
problem is:

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: "

                                                     - Ted



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to