From 13d6de37877c75db39a620c79c1f9f5986e28947 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 25 Apr 2022 10:58:46 +0200 Subject: [PATCH] datastore: include namespace in full_path Signed-off-by: Wolfgang Bumiller Signed-off-by: Thomas Lamprecht --- pbs-datastore/src/backup_info.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pbs-datastore/src/backup_info.rs b/pbs-datastore/src/backup_info.rs index a360483d..d47b3e9c 100644 --- a/pbs-datastore/src/backup_info.rs +++ b/pbs-datastore/src/backup_info.rs @@ -335,6 +335,10 @@ impl BackupDir { /// Returns the absolute path for backup_dir, using the cached formatted time string. pub fn full_path(&self) -> PathBuf { let mut base_path = self.store.base_path(); + for ns in self.dir.group.ns.components() { + base_path.push("ns"); + base_path.push(ns); + } base_path.push(self.dir.group.ty.as_str()); base_path.push(&self.dir.group.id); base_path.push(&self.backup_time_string); -- 2.39.5