all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-backup] datastore: don't skip empty namespaces on s3 refresh
@ 2026-03-04 10:39 Hannes Laimer
  2026-03-04 14:19 ` Christian Ebner
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Laimer @ 2026-03-04 10:39 UTC (permalink / raw)
  To: pbs-devel

Without this empty namespaces present on s3 won't be visible locally.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
 pbs-datastore/src/datastore.rs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pbs-datastore/src/datastore.rs b/pbs-datastore/src/datastore.rs
index 7ad3d917..4749319a 100644
--- a/pbs-datastore/src/datastore.rs
+++ b/pbs-datastore/src/datastore.rs
@@ -2535,6 +2535,15 @@ impl DataStore {
                     format!("failed to strip store context prefix {store_prefix} for {object_key}")
                 })?;
                 if object_path.ends_with(NAMESPACE_MARKER_FILENAME) {
+                    // Ensure the marker's parent directory exists so the namespace is visible locally
+                    let ns_dir = tmp_base.join(object_path);
+                    if let Some(parent) = ns_dir.parent() {
+                        proxmox_sys::fs::create_path(
+                            parent,
+                            Some(dir_create_options),
+                            Some(dir_create_options),
+                        )?;
+                    }
                     continue;
                 }
 
-- 
2.47.3





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-04 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-04 10:39 [PATCH proxmox-backup] datastore: don't skip empty namespaces on s3 refresh Hannes Laimer
2026-03-04 14:19 ` Christian Ebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal