]> git.proxmox.com Git - proxmox-backup.git/commit
tape: fix snapshot path in catalog and snapshot_archive
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 10 May 2022 14:09:42 +0000 (16:09 +0200)
committerDominik Csapak <d.csapak@proxmox.com>
Fri, 13 May 2022 11:52:50 +0000 (13:52 +0200)
commit9c65e6ab4ad86a16c9a180f62629dee69c84fe05
treeed6c53ec3bcfc4fb2ea6e8fdfae08e9832c9d715
parent1e4e1514d3de7d3aad1747e6e5d29be57b0ca42c
tape: fix snapshot path in catalog and snapshot_archive

both used the 'Display' trait of pbs_datastore::BackupDir, which is not
intended to be serialized anywhere. Instead, manually format the path
using the print_ns_and_snapshot helper, and conversely, parse with
'parse_ns_and_snapshot'. to be a bit safer, change the register_snapshot
signature to take a BackupNamespace and BackupDir instead of a string.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/tape/media.rs
src/api2/tape/restore.rs
src/tape/file_formats/snapshot_archive.rs
src/tape/media_catalog.rs
src/tape/pool_writer/catalog_set.rs
src/tape/pool_writer/mod.rs