gfs2: Add a crc field to resource group headers
authorAndrew Price <anprice@redhat.com>
Tue, 12 Dec 2017 17:42:30 +0000 (11:42 -0600)
committerBob Peterson <rpeterso@redhat.com>
Tue, 12 Dec 2017 17:43:42 +0000 (11:43 -0600)
commit850d2d915fa69011bef9bd668499cce889fdd8b3
tree7dbc81bc6579f08027b72d2f11f519bf3c76131c
parent166725d96322473305e35f9d580591a01697ab29
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).

Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/rgrp.c
include/uapi/linux/gfs2_ondisk.h