diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-17 21:37:38 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-26 15:38:24 -0700 |
commit | 21fb4cb1981ef7e02f35a42b2a5ae619517dfe1b (patch) | |
tree | 5c1adb6c97d3161cd876f2b7dcc76364792e2f20 /fs/xfs/scrub/scrub.c | |
parent | b6c1beb967b0a4a1b8297ee6f4bc067a0ba32b0b (diff) | |
download | linux-21fb4cb1981ef7e02f35a42b2a5ae619517dfe1b.tar.gz linux-21fb4cb1981ef7e02f35a42b2a5ae619517dfe1b.tar.bz2 linux-21fb4cb1981ef7e02f35a42b2a5ae619517dfe1b.zip |
xfs: scrub the secondary superblocks
Ensure that the geometry presented in the backup superblocks matches
the primary superblock so that repair can recover the filesystem if
that primary gets corrupted.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.c')
-rw-r--r-- | fs/xfs/scrub/scrub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index 1d0d609f9cf6..7b4cb79af25c 100644 --- a/fs/xfs/scrub/scrub.c +++ b/fs/xfs/scrub/scrub.c @@ -158,6 +158,10 @@ static const struct xfs_scrub_meta_ops meta_scrub_ops[] = { .setup = xfs_scrub_setup_fs, .scrub = xfs_scrub_probe, }, + { /* superblock */ + .setup = xfs_scrub_setup_ag_header, + .scrub = xfs_scrub_superblock, + }, }; /* This isn't a stable feature, warn once per day. */ |