@@ -401,4 +401,11 @@ phase4(xfs_mount_t *mp)
*/
quotino_check(mp);
quota_sb_check(mp);
+
+ /* Check the rt metadata before we rebuild */
+ if (mp->m_sb.sb_rblocks) {
+ do_log(
+ _(" - generate realtime summary info and bitmap...\n"));
+ check_rtmetadata(mp);
+ }
}
@@ -694,12 +694,6 @@ phase5(xfs_mount_t *mp)
free(sb_ifree_ag);
free(sb_fdblocks_ag);
- if (mp->m_sb.sb_rblocks) {
- do_log(
- _(" - generate realtime summary info and bitmap...\n"));
- check_rtmetadata(mp);
- }
-
do_log(_(" - reset superblock...\n"));
/*
@@ -1318,9 +1318,6 @@ main(int argc, char **argv)
if (no_modify) {
printf(_("No modify flag set, skipping phase 5\n"));
-
- if (mp->m_sb.sb_rblocks > 0)
- check_rtmetadata(mp);
} else {
phase5(mp);
}