aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs/debugfs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-09-07 21:15:12 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-09-07 21:15:12 -0400
commit732c8cd58ff30ffae0d3276c411a08920717a46c (patch)
treede130d62127f09d3c8a975d3b5b7fd2875209afa /debugfs/debugfs.c
parent24a117abd0340d247befbf7687ffb70547fdf218 (diff)
downloadandroid_external_e2fsprogs-732c8cd58ff30ffae0d3276c411a08920717a46c.tar.gz
android_external_e2fsprogs-732c8cd58ff30ffae0d3276c411a08920717a46c.tar.bz2
android_external_e2fsprogs-732c8cd58ff30ffae0d3276c411a08920717a46c.zip
Use accessor functions fields for bg_flags in the block group descriptors
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'debugfs/debugfs.c')
-rw-r--r--debugfs/debugfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 93227e38..24aa664b 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -290,10 +290,10 @@ static void print_features(struct ext2_super_block * s, FILE *f)
fputs("\n", f);
}
-static void print_bg_opts(struct ext2_group_desc *gdp, int mask,
+static void print_bg_opts(ext2_filsys fs, dgrp_t group, int mask,
const char *str, int *first, FILE *f)
{
- if (gdp->bg_flags & mask) {
+ if (ext2fs_bg_flag_test(fs, group, mask)) {
if (*first) {
fputs(" [", f);
*first = 0;
@@ -362,9 +362,9 @@ void do_show_super_stats(int argc, char *argv[])
gdp->bg_itable_unused,
gdp->bg_itable_unused != 1 ? "inodes":"inode");
first = 1;
- print_bg_opts(gdp, EXT2_BG_INODE_UNINIT, "Inode not init",
+ print_bg_opts(current_fs, i, EXT2_BG_INODE_UNINIT, "Inode not init",
&first, out);
- print_bg_opts(gdp, EXT2_BG_BLOCK_UNINIT, "Block not init",
+ print_bg_opts(current_fs, i, EXT2_BG_BLOCK_UNINIT, "Block not init",
&first, out);
if (gdt_csum) {
fprintf(out, "%sChecksum 0x%04x",