xfs_check is a script that runs xfs_db to do a filesystem check.
The "check" command in xfs_db scans all the metadata structures for inconsistency
xfs_check uses a different codebase to xfs_repair
xfs_check and xfs_repair can be used to cross check each other