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

Stoiko Ivanov s.ivanov at proxmox.com
Mon Jun 24 21:57:10 CEST 2024


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(-)

-- 
2.39.2





More information about the pve-devel mailing list