]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage.pm
Extend archive_info to include filename and logfilename
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 30 Jun 2020 08:24:18 +0000 (10:24 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 Jun 2020 11:59:23 +0000 (13:59 +0200)
commite34afeb11724b705766c0581a66cc4c4b26303c0
treee9a43c083be7f6a7a95ee47e347e2a0c01c52b71
parent7dd31e686ca3ee218a0f77e3c4dd87fc137adccf
Extend archive_info to include filename and logfilename

Only expect the logfilename if the archive has a standard name.
This also gives a mechanism to get an untainted filename.

archive_info can take either a volume ID or a path as it's
currently implemented. This is useful for vzdump when there
is no storage (i.e. for 'vzdump --dumpdir'). Add a test case for this.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage.pm
test/archive_info_test.pm