[pbs-devel] [PATCH proxmox-backup 3/5] file-restore-daemon/disk: fix component path errors
Stefan Reiter
s.reiter at proxmox.com
Wed Jun 30 17:57:57 CEST 2021
otherwise the path ends in an array ["foo", "bar"] instead of "foo/bar"
Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
src/bin/proxmox_restore_daemon/disk.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bin/proxmox_restore_daemon/disk.rs b/src/bin/proxmox_restore_daemon/disk.rs
index b90d2a28..f8f67d83 100644
--- a/src/bin/proxmox_restore_daemon/disk.rs
+++ b/src/bin/proxmox_restore_daemon/disk.rs
@@ -527,10 +527,10 @@ impl DiskState {
let mut bucket = match Bucket::filter_mut(buckets, &bucket_type, &components) {
Some(bucket) => bucket,
None => bail!(
- "bucket/component path not found: {}/{}/{:?}",
+ "bucket/component path not found: {}/{}/{}",
req_fidx,
bucket_type,
- components
+ components.join("/")
),
};
@@ -540,10 +540,10 @@ impl DiskState {
.ensure_mounted(&mut bucket)
.map_err(|err| {
format_err!(
- "mounting '{}/{}/{:?}' failed: {}",
+ "mounting '{}/{}/{}' failed: {}",
req_fidx,
bucket_type,
- components,
+ components.join("/"),
err
)
})?;
--
2.30.2
More information about the pbs-devel
mailing list