[pbs-devel] [PATCH v4 proxmox-backup 2/2] backup: check all referenced chunks actually exist
Dietmar Maurer
dietmar at proxmox.com
Tue Sep 15 09:47:45 CEST 2020
We modify the manifest from several locations now:
src/backup/verify.rs
src/api2/admin/datastore.rs (set_notes)
and here:
> + let res = proxmox::try_block!{
> + let (mut manifest, _) = self.datastore.load_manifest(last_dir)?;
> + manifest.unprotected["verify_state"] = serde_json::to_value(verify_state)?;
> + self.datastore.store_manifest(last_dir, serde_json::to_value(manifest)?)
> + };
> +
So we need some kind of locking!
More information about the pbs-devel
mailing list