datafile statistics and verification
Metakit datafiles are failsafe, in that failures at any point, even power failures, will not lead to damaged datafiles. This is due to a technique called "stable storage".
Still, there may be cases when datafiles do get damaged:
The Mkstats utility helps verify datafiles, in that it checks the most likely form of damage: allocated/free space use in the file which are incorrect and have overlap. Note that there is no free space list on file: free space is defined implicitly as the space which is not in use. This means free space need never be reclaimed - its reuse is automatic. The one error is if byte ranges used on file show any overlap.
As a side benefit, "mkstats" also displays some basic file usage statistics.
Linux and mac os x
Mkstats can deal with datafiles created on any platform.
Note: please remove the mku.* utility created by mkstats when updating, to make sure the latest versions is used after the update.
See the feedback forum in case of trouble.