{ "mount_opts", &set_sb.s_mount_opts, 64, parse_string },
{ "usr_quota_inum", &set_sb.s_usr_quota_inum, 4, parse_uint },
{ "grp_quota_inum", &set_sb.s_grp_quota_inum, 4, parse_uint },
+ { "overhead_blocks", &set_sb.s_overhead_blocks, 4, parse_uint },
{ 0, 0, 0, 0 }
};
fprintf(f, "Inode count: %u\n", sb->s_inodes_count);
fprintf(f, "Block count: %u\n", sb->s_blocks_count);
fprintf(f, "Reserved block count: %u\n", sb->s_r_blocks_count);
+ if (sb->s_overhead_blocks)
+ fprintf(f, "Overhead blocks: %u\n",
+ sb->s_overhead_blocks);
fprintf(f, "Free blocks: %u\n", sb->s_free_blocks_count);
fprintf(f, "Free inodes: %u\n", sb->s_free_inodes_count);
fprintf(f, "First block: %u\n", sb->s_first_data_block);
__u32 s_free_inodes_count; /* Free inodes count */
__u32 s_first_data_block; /* First Data Block */
__u32 s_log_block_size; /* Block size */
- __s32 s_log_cluster_size; /* Allocation cluster size */
+ __u32 s_log_cluster_size; /* Allocation cluster size */
__u32 s_blocks_per_group; /* # Blocks per group */
__u32 s_clusters_per_group; /* # Fragments per group */
__u32 s_inodes_per_group; /* # Inodes per group */
__u8 s_mount_opts[64];
__u32 s_usr_quota_inum; /* inode number of user quota file */
__u32 s_grp_quota_inum; /* inode number of group quota file */
- __u32 s_reserved[110]; /* Padding to the end of the block */
+ __u32 s_overhead_blocks; /* overhead blocks/clusters in fs */
+ __u32 s_reserved[109]; /* Padding to the end of the block */
};
#define EXT4_S_ERR_LEN (EXT4_S_ERR_END - EXT4_S_ERR_START)
check_field(s_mount_opts);
check_field(s_usr_quota_inum);
check_field(s_grp_quota_inum);
+ check_field(s_overhead_blocks);
check_field(s_reserved);
printf("Ending offset is %d\n\n", cur_offset);
#endif