After renaming a file in place, the dbpath directory must also be flushed before a rename is durable. After renaming the storage.bson file, the dbpath's parent is accidentally being flushed. This provides the durability guarantee, but the mongod process may not have permissions to do so. This results in an exception crashing mongod.
Problematic verbose log line when starting on the default dbpath of /data/db/:
The fixed version: