]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bae8fc21656449c782d3910cdd94429265f1e27
tree7dbc81bc6579f08027b72d2f11f519bf3c76131c
parent717f6a858121a3ac312c1b489f18347f4300d6c2
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