diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-29 22:18:12 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-30 08:03:15 -0700 |
commit | d25522f10cfa342a20867086a516c45c87b0877c (patch) | |
tree | 1d8c66aeb7f9ed02c1247c258947abd2a38f1c4a /fs/xfs/scrub/repair.h | |
parent | 7e85bc6c873215f19a0b750febfb097d1f3c3292 (diff) | |
download | lwn-d25522f10cfa342a20867086a516c45c87b0877c.tar.gz lwn-d25522f10cfa342a20867086a516c45c87b0877c.zip |
xfs: repair superblocks
If one of the backup superblocks is found to differ seriously from
superblock 0, write out a fresh copy from the in-core sb.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/repair.h')
-rw-r--r-- | fs/xfs/scrub/repair.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/repair.h b/fs/xfs/scrub/repair.h index e9213e7d653a..f2b0895294db 100644 --- a/fs/xfs/scrub/repair.h +++ b/fs/xfs/scrub/repair.h @@ -102,6 +102,7 @@ int xfs_repair_ino_dqattach(struct xfs_scrub_context *sc); /* Metadata repairers */ int xfs_repair_probe(struct xfs_scrub_context *sc); +int xfs_repair_superblock(struct xfs_scrub_context *sc); #else @@ -124,6 +125,7 @@ xfs_repair_calc_ag_resblks( } #define xfs_repair_probe xfs_repair_notsupported +#define xfs_repair_superblock xfs_repair_notsupported #endif /* CONFIG_XFS_ONLINE_REPAIR */ |