pub fn write_with_backup(path: &Path, bytes: &[u8]) -> Result<()>
写文件:先把旧主文件备份(含其 checksum),再原子写新主文件与校验和。