summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2014-05-12 00:21:29 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-05-13 10:13:40 -0400
commit35a7a5769abff2121973da2bd416c2e99e5e9f5f (patch)
treecb00dd64b537f92fdc28da0750a5393b6852bec4
parent1244cacc7093ef612b164ff35b2410a7fc3aefce (diff)
downloade2fsprogs-35a7a5769abff2121973da2bd416c2e99e5e9f5f.tar.gz
mke2fs: set gdt csum when creating packed fs
When we're creating a fs with metadata blocks packed at the beginning (packed_meta_blocks=1 in mke2fs.conf), set the group descriptor checksum or else we create DOA filesystems with checksum errors. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Lukas Czerner <lczerner@redhat.com>
-rw-r--r--misc/mke2fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 9c4b0b26..eb9846a7 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -367,6 +367,7 @@ static errcode_t packed_allocate_tables(ext2_filsys fs)
ext2fs_block_alloc_stats_range(fs, goal,
fs->inode_blocks_per_group, +1);
ext2fs_inode_table_loc_set(fs, i, goal);
+ ext2fs_group_desc_csum_set(fs, i);
}
return 0;
}