fn write_atomic_inner( path: &Path, content: &[u8], force: bool, before_commit: impl FnOnce(), ) -> Result