@@ -3970,6 +3970,11 @@ scan_ag(
dbprintf(_("mkfs not completed successfully\n"));
error++;
}
+ if (xfs_sb_version_needsrepair(sb)) {
+ if (!sflag)
+ dbprintf(_("filesystem needs xfs_repair\n"));
+ error++;
+ }
set_dbmap(agno, XFS_SB_BLOCK(mp), 1, DBM_SB, agno, XFS_SB_BLOCK(mp));
if (sb->sb_logstart && XFS_FSB_TO_AGNO(mp, sb->sb_logstart) == agno)
set_dbmap(agno, XFS_FSB_TO_AGBNO(mp, sb->sb_logstart),
@@ -691,6 +691,8 @@ version_string(
strcat(s, ",INOBTCNT");
if (xfs_sb_version_hasbigtime(sbp))
strcat(s, ",BIGTIME");
+ if (xfs_sb_version_needsrepair(sbp))
+ strcat(s, ",NEEDSREPAIR");
return s;
}