lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 17 Mar 2008 09:28:42 -0400 From: Theodore Ts'o <tytso@....edu> To: linux-ext4@...r.kernel.org Cc: "Jose R. Santos" <jrs@...ibm.com>, Andreas Dilger <adilger@...sterfs.com>, "Theodore Ts'o" <tytso@....edu> Subject: [PATCH, REWORKED 06/11] Make dumpe2fs uninit block group aware From: Jose R. Santos <jrs@...ibm.com> Signed-off-by: Jose R. Santos <jrs@...ibm.com> Signed-off-by: Andreas Dilger <adilger@...sterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@....edu> --- misc/dumpe2fs.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c index f6e7972..10ec5c0 100644 --- a/misc/dumpe2fs.c +++ b/misc/dumpe2fs.c @@ -112,7 +112,8 @@ static void print_bg_opts(ext2_filsys fs, dgrp_t i) { int first = 1, bg_flags; - if (fs->super->s_feature_compat & EXT2_FEATURE_COMPAT_LAZY_BG) + if (fs->super->s_feature_compat & EXT2_FEATURE_COMPAT_LAZY_BG || + fs->super->s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) bg_flags = fs->group_desc[i].bg_flags; else bg_flags = 0; @@ -210,11 +211,15 @@ static void list_desc (ext2_filsys fs) diff = fs->group_desc[i].bg_inode_table - first_block; if (diff > 0) printf(" (+%ld)", diff); - printf (_("\n %d free blocks, %d free inodes, " - "%d directories\n"), + printf (_("\n %u free blocks, %u free inodes, " + "%u directories%s"), fs->group_desc[i].bg_free_blocks_count, fs->group_desc[i].bg_free_inodes_count, - fs->group_desc[i].bg_used_dirs_count); + fs->group_desc[i].bg_used_dirs_count, + fs->group_desc[i].bg_itable_unused ? "" : "\n"); + if (fs->group_desc[i].bg_itable_unused) + printf (_(", %u unused inodes\n"), + fs->group_desc[i].bg_itable_unused); if (block_bitmap) { fputs(_(" Free blocks: "), stdout); ext2fs_get_block_bitmap_range(fs->block_map, -- 1.5.4.1.144.gdfee-dirty -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists