[pbs-devel] [PATCH proxmox-backup 01/11] prune: respect snapshot flock

Stefan Reiter s.reiter at proxmox.com
Wed Oct 14 14:16:29 CEST 2020


A snapshot that's currently being read can still appear in the prune
list, but should not be removed.

Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
 src/api2/admin/datastore.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api2/admin/datastore.rs b/src/api2/admin/datastore.rs
index 405a3c24..79add173 100644
--- a/src/api2/admin/datastore.rs
+++ b/src/api2/admin/datastore.rs
@@ -727,7 +727,7 @@ fn prune(
             }));
 
             if !(dry_run || keep) {
-                datastore.remove_backup_dir(&info.backup_dir, true)?;
+                datastore.remove_backup_dir(&info.backup_dir, false)?;
             }
         }
 
-- 
2.20.1






More information about the pbs-devel mailing list