5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-22 02:04:02 +03:00

parse disks: also include storage ID information

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-05-04 10:10:03 +02:00 committed by Thomas Lamprecht
parent 0eb3ecdcf4
commit e2c374ad77

View File

@ -877,6 +877,8 @@ sub parse_disks {
die "Get no path from pvesm path $stor:$disk\n" if !$path;
$disks->{$num}->{storage_id} = $stor;
if ($vm_type eq 'qemu' && $path =~ m/^\/dev\/zvol\/(\w+.*)(\/$disk)$/) {
my @array = split('/', $1);