From a08698d32ae0967a20aa5b0c00a5a85f1a32b71b Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Tue, 2 Jul 2024 09:24:14 +0200 Subject: [PATCH] close #5571: client: fix regression for `map` command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 08fe5052 introduced functionality to mount split pxar archives (sharing code with the map command), moving the manifest lookup exclusive to fixed index archives. However, the lookup now uses the incorrect archive name, not containing the `.fidx` extension, which is however required for the lookup in the manifest. Fix the issue by calling the method with the correct server archive name including the required extension. Signed-off-by: Christian Ebner Tested-by: Gabriel Goller Reviewed-by: Gabriel Goller Fixes: 08fe5052 ("client: mount: make split pxar archives mountable") [FG: reworded, add proper "Fixes:" trailer.] Signed-off-by: Fabian Grünbichler --- proxmox-backup-client/src/mount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-backup-client/src/mount.rs b/proxmox-backup-client/src/mount.rs index d9669083..538a40e6 100644 --- a/proxmox-backup-client/src/mount.rs +++ b/proxmox-backup-client/src/mount.rs @@ -302,7 +302,7 @@ async fn mount_do(param: Value, pipe: Option) -> Result { } } } else if server_archive_name.ends_with(".fidx") { - let file_info = manifest.lookup_file_info(archive_name)?; + let file_info = manifest.lookup_file_info(&server_archive_name)?; let index = client .download_fixed_index(&manifest, &server_archive_name) .await?;