Provide functions for dumping allocation map.
Sync fs before crashing.
Fix module ordering.