Thread (57 messages) 57 messages, 2 authors, 2011-12-19

Re: [PATCH 11/51] dumpe2fs: Display inode bitmap checksum

From: Andreas Dilger <hidden>
Date: 2011-12-18 19:46:21

On 2011-12-13, at 19:14, "Darrick J. Wong" [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Display the inode bitmap checksum for each block group.

Signed-off-by: Darrick J. Wong <redacted>
---
misc/dumpe2fs.c |    5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c
index 5b114e9..98bee2b 100644
--- a/misc/dumpe2fs.c
+++ b/misc/dumpe2fs.c
@@ -226,6 +226,11 @@ static void list_desc (ext2_filsys fs)
       print_number(ext2fs_inode_bitmap_loc(fs, i));
       print_bg_rel_offset(fs, ext2fs_inode_bitmap_loc(fs, i), 0,
                   first_block, last_block);
+        if (fs->super->s_desc_size >= EXT2_MIN_DESC_SIZE_64BIT &&
+            fs->super->s_feature_ro_compat &
+            EXT4_FEATURE_RO_COMPAT_METADATA_CSUM)
+            printf(_(", csum 0x%08x"),
This shouldn't only be printed for 64 byte descriptors. There is a checksum even for 32 byte descriptors. 

Cheers, Andreas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help