xfs: scrub the AGI

Add a forgotten check to the AGI verifier, then wire up the scrub
infrastructure to check the AGI contents.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
此提交包含在:
Darrick J. Wong
2017-10-17 21:37:39 -07:00
父節點 ab9d5dc59f
當前提交 a12890aebb
共有 5 個檔案被更改,包括 95 行新增3 行删除

查看文件

@@ -170,6 +170,10 @@ static const struct xfs_scrub_meta_ops meta_scrub_ops[] = {
.setup = xfs_scrub_setup_ag_header,
.scrub = xfs_scrub_agfl,
},
{ /* agi */
.setup = xfs_scrub_setup_ag_header,
.scrub = xfs_scrub_agi,
},
};
/* This isn't a stable feature, warn once per day. */