ostree-fsck man page
ostree-fsck — Check the repository for consistency
ostree fsck [Options...]
Checks the repository to verify the content integrity of commit objects. Looks for missing and corrupted objects and metadata, and validates directory structure and metadata.
Only print error messages.
Remove corrupted objects.
Add tombstone commit for referenced but missing commits.
Verify that the commits pointed to by each ref have that ref in the binding set. You should usually add this option; it only defaults to off for backwards compatibility.
Verify that all the refs listed in a commit’s ref-bindings point to that commit. This cannot be used in repositories where the target of refs is changed over time as new commits are added, but can be used in repositories which are regenerated from scratch for each commit. Implies --verify-bindings as well.
$ ostree fsck
Enumerating objects... Verifying content integrity of of 2 commit objects 0/2572 objects 2571/2572 objects