[pbs-devel] [PATCH proxmox-backup 0/2] wait for active operations to finish before s3 refresh

Christian Ebner c.ebner at proxmox.com
Tue Nov 4 14:19:32 CET 2025


Datastore contents located on the s3 backend can be refreshed on the local
datastore cache by running an s3-refresh, which will set the maintenance mode
s3-refresh to block any read/write operation and fetch the contents to a
temporary directory before moving them in place if the fetching was successful.

Setting the maintenance mode has however no effect on already active operations,
which can cause inconsistencies once the s3 refresh moves the temporary folders
in place.

Fix this by actively waiting for ongoing read/write operations to finish before
starting with the s3-refresh.

proxmox-backup:

Christian Ebner (2):
  datastore: s3 refresh: set/unset maintenance mode in api handler
  api: datastore: wait for active operations to clear before s3 refresh

 pbs-datastore/src/datastore.rs | 26 -----------------
 src/api2/admin/datastore.rs    | 51 +++++++++++++++++++++++++++++++---
 2 files changed, 47 insertions(+), 30 deletions(-)


Summary over all repositories:
  2 files changed, 47 insertions(+), 30 deletions(-)

-- 
Generated by git-murpp 0.8.1




More information about the pbs-devel mailing list