From: Theodore Ts'o Date: Sun, 22 Sep 2002 19:27:28 +0000 (-0400) Subject: Flag continuation hashes in debugfs's htree command to make them X-Git-Tag: E2FSPROGS-1_29~7 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=42e5b5f987ce869cb50e765bb985dddc5d70d753;p=tools%2Fe2fsprogs.git Flag continuation hashes in debugfs's htree command to make them easier to find. --- diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index 6d9e372..3518ef8 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,8 @@ +2002-09-22 root + + * htree.c (htree_dump_int_node): Flag continuation hashes to make + them easier to find. + 2001-08-31 Theodore Tso * Release of E2fsprogs 1.28 diff --git a/debugfs/htree.c b/debugfs/htree.c index 1268a84..c719e4e 100644 --- a/debugfs/htree.c +++ b/debugfs/htree.c @@ -104,7 +104,7 @@ static void htree_dump_int_node(ext2_filsys fs, ext2_ino_t ino, { struct ext2_dx_countlimit limit; struct ext2_dx_entry e; - int i; + int hash, i; limit = *((struct ext2_dx_countlimit *) ent); @@ -114,10 +114,12 @@ static void htree_dump_int_node(ext2_filsys fs, ext2_ino_t ino, fprintf(pager, "Number of entries (count): %d\n", limit.count); fprintf(pager, "Number of entries (limit): %d\n", limit.limit); - for (i=0; i < limit.count; i++) - fprintf(pager, "Entry #%d: Hash 0x%08x, block %d\n", i, - i ? ext2fs_le32_to_cpu(ent[i].hash) : 0, + for (i=0; i < limit.count; i++) { + hash = i ? ext2fs_le32_to_cpu(ent[i].hash) : 0; + fprintf(pager, "Entry #%d: Hash 0x%08x%s, block %d\n", i, + hash, (hash & 1) ? " (**)" : "", ext2fs_le32_to_cpu(ent[i].block)); + } fprintf(pager, "\n");