pub fn write_updates(updates: &UpdateResult) -> MdtResult<()>
Write the updated contents back to disk.