@zensaiyuki

Or, you could use a journaling file system.