file-restore-daemon/disk: fix component path errors

otherwise the path ends in an array ["foo", "bar"] instead of "foo/bar"

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Reviewed-By: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Stefan Reiter 2021-06-30 17:57:57 +02:00 committed by Thomas Lamprecht
parent 0dda883994
commit 7a0afee391
1 changed files with 4 additions and 4 deletions

View File

@ -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
)
})?;