OSDN Git Service

mke2fs: set gdt csum when creating packed fs
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 May 2014 04:21:29 +0000 (00:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 13 May 2014 14:13:40 +0000 (10:13 -0400)
commit35a7a5769abff2121973da2bd416c2e99e5e9f5f
treecb00dd64b537f92fdc28da0750a5393b6852bec4
parent1244cacc7093ef612b164ff35b2410a7fc3aefce
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>
misc/mke2fs.c