aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/gfs2_ondisk.h
diff options
context:
space:
mode:
authorAndrew Price <anprice@redhat.com>2017-12-12 11:42:30 -0600
committerBob Peterson <rpeterso@redhat.com>2017-12-12 11:43:42 -0600
commit850d2d915fa69011bef9bd668499cce889fdd8b3 (patch)
tree7dbc81bc6579f08027b72d2f11f519bf3c76131c /include/uapi/linux/gfs2_ondisk.h
parentgfs2: Add rindex fields to rgrp headers (diff)
downloadlinux-dev-850d2d915fa69011bef9bd668499cce889fdd8b3.tar.xz
linux-dev-850d2d915fa69011bef9bd668499cce889fdd8b3.zip
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>
Diffstat (limited to 'include/uapi/linux/gfs2_ondisk.h')
-rw-r--r--include/uapi/linux/gfs2_ondisk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/gfs2_ondisk.h b/include/uapi/linux/gfs2_ondisk.h
index 648e0cbca574..09f0920f07e9 100644
--- a/include/uapi/linux/gfs2_ondisk.h
+++ b/include/uapi/linux/gfs2_ondisk.h
@@ -197,8 +197,9 @@ struct gfs2_rgrp {
__be64 rg_data0; /* First data location */
__be32 rg_data; /* Number of data blocks in rgrp */
__be32 rg_bitbytes; /* Number of bytes in data bitmaps */
+ __be32 rg_crc; /* crc32 of the structure with this field 0 */
- __u8 rg_reserved[64]; /* Several fields from gfs1 now reserved */
+ __u8 rg_reserved[60]; /* Several fields from gfs1 now reserved */
};
/*