[pbs-devel] [PATCH v3 proxmox-backup 0/3] datastore: Create a prune job upon datastore creation

Stefan Lendl s.lendl at proxmox.com
Thu Nov 23 17:38:38 CET 2023


prune-schedule was availible as an option in API and GUI but had no effect
because datastore prunes are handles by prune-jobs.
This creates a default prune job if prune-schedule is set when creating the
datastore.

Differences to v2->v3:
  updated Option.and_then() to Option.map()
  Added Tested-by g.goller trailer

Differences to v1->v2:
  split into individual patches to separatly move logic to do_create_prune_job

Stefan Lendl (3):
  prune job: prune job creation in separate function
  pass worker context to do_create_prune_job
  fix #4374: create a prune job upon datastore creation

 src/api2/config/datastore.rs | 49 +++++++++++++++++++++++++++++-------
 src/api2/config/prune.rs     | 43 ++++++++++++++++++++-----------
 2 files changed, 68 insertions(+), 24 deletions(-)

-- 
2.42.0






More information about the pbs-devel mailing list