History

gfs2: Add a crc field to resource group headers

Add the rg_crc field to store a crc32 of the gfs2_rgrp structure. This allows us to check resource group headers' integrity and removes the requirement to check them against the rindex entries in fsck. If this field is found to be zero, it should be ignored (or updated with an accurate value).

Andrew Price committed 8 years ago

Commit 850d2d91 parent 166725d2 files · +7 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/gfs2_ondisk.h+2−1
@@ -197,8 +197,9 @@ struct gfs2_rgrp { · 196 unmodified lines
197 __be64 rg_data0; /* First data location */197 __be64 rg_data0; /* First data location */
198 __be32 rg_data; /* Number of data blocks in rgrp */198 __be32 rg_data; /* Number of data blocks in rgrp */
199 __be32 rg_bitbytes; /* Number of bytes in data bitmaps */199 __be32 rg_bitbytes; /* Number of bytes in data bitmaps */
200 __be32 rg_crc; /* crc32 of the structure with this field 0 */
200 201
201 __u8 rg_reserved[64]; /* Several fields from gfs1 now reserved */202 __u8 rg_reserved[60]; /* Several fields from gfs1 now reserved */
202};203};
203 204
204/*205/*