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:
parent
0dda883994
commit
7a0afee391
|
@ -527,10 +527,10 @@ impl DiskState {
|
||||||
let mut bucket = match Bucket::filter_mut(buckets, &bucket_type, &components) {
|
let mut bucket = match Bucket::filter_mut(buckets, &bucket_type, &components) {
|
||||||
Some(bucket) => bucket,
|
Some(bucket) => bucket,
|
||||||
None => bail!(
|
None => bail!(
|
||||||
"bucket/component path not found: {}/{}/{:?}",
|
"bucket/component path not found: {}/{}/{}",
|
||||||
req_fidx,
|
req_fidx,
|
||||||
bucket_type,
|
bucket_type,
|
||||||
components
|
components.join("/")
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -540,10 +540,10 @@ impl DiskState {
|
||||||
.ensure_mounted(&mut bucket)
|
.ensure_mounted(&mut bucket)
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
format_err!(
|
format_err!(
|
||||||
"mounting '{}/{}/{:?}' failed: {}",
|
"mounting '{}/{}/{}' failed: {}",
|
||||||
req_fidx,
|
req_fidx,
|
||||||
bucket_type,
|
bucket_type,
|
||||||
components,
|
components.join("/"),
|
||||||
err
|
err
|
||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
|
|
Loading…
Reference in New Issue