[pve-devel] [PATCH proxmox-offline-mirror 0/2] remove snapshot directories vanished on source also on medium

Stoiko Ivanov s.ivanov at proxmox.com
Tue Jul 9 12:50:54 CEST 2024


superseded-by:
https://lists.proxmox.com/pipermail/pve-devel/2024-July/064545.html

On Mon, 24 Jun 2024 21:57:10 +0200
Stoiko Ivanov <s.ivanov at proxmox.com> wrote:

> This patchset fixes a small glitch that we noticed in a pom-setup, creating
> regular snapshots, without cleaning them up regularly.
> 
> Eventually medium sync becomes quite slow.
> After removing many snapshots and running garbage collection both on the
> mirror as well as on the medium the run-time for the sync still took quite
> long. strace showed that the process still walked through the directories
> for each snapshot on the medium - they were not cleaned up after all the
> files inside were removed.
> 
> tested the patch locally (which is the reason for patch 1/2).
> 
> Stoiko Ivanov (2):
>   bump proxmox-time to 2.0
>   medium: remove snapshot link directories not present in source mirror
> 
>  Cargo.toml     |  2 +-
>  debian/control |  2 +-
>  src/medium.rs  | 18 +++++++++++++++++-
>  src/types.rs   |  2 +-
>  4 files changed, 20 insertions(+), 4 deletions(-)
> 





More information about the pve-devel mailing list