linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix debugfs output for flex_bg bitmap offsets
@ 2010-11-25  9:57 Andreas Dilger
  2010-11-25 19:09 ` Andreas Dilger
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Dilger @ 2010-11-25  9:57 UTC (permalink / raw)
  To: Theodore Tso; +Cc: Ext4 Developers List

When running debugfs on a filesystem formatted with flex_bg, it prints out the relative offsets for the bitmaps and inode table badly on 64-bit systems, because the offset is computed as a large positive number instead of being a negative numer (which will not be printed at all):

Group 1: (Blocks 0x8000-0xffff) [INODE_UNINIT, ITABLE_ZEROED]
 Block bitmap at 0x0102 (+4294934786), Inode bitmap at 0x0202 (+4294935042)
 Inode table at 0x037e-0x03fa (+4294935422)

The attached patch prints out the relative offsets for flex_bg groups as the offset within the reported group.  This makes it more clear where the metadata is located, rather than simply printing some large negative number.

Group 1: (Blocks 0x8000-0xffff) [INODE_UNINIT, ITABLE_ZEROED]
 Block bitmap at 0x0102 (group 0 +258), Inode bitmap at 0x0202 (group 0 +514)
 Inode table at 0x037e-0x03fa (group 0 +894)

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
--


Cheers, Andreas





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-06  3:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-25  9:57 [PATCH] fix debugfs output for flex_bg bitmap offsets Andreas Dilger
2010-11-25 19:09 ` Andreas Dilger
2010-11-27  0:33   ` Andreas Dilger
2010-12-06  3:16     ` Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).