I did the following modification in this version: 1. truncate the snapshot log file using truncate() instead of using open() 2. rename omap_cache as omap_tree in trunk.c