5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-03-11 20:58:42 +03:00

fix disk parser

This commit is contained in:
Wolfgang Link 2015-11-06 15:53:53 +01:00 committed by Dietmar Maurer
parent 938ef92d6b
commit aec521ca2e

View File

@ -774,13 +774,13 @@ sub parse_disks {
$disks->{$num}->{all} .= "\/$disk";
$num++;
} elsif ($vm_type eq 'lxc' && $path =~ m/^\/(\w+.+)\/(\w+.*)(\/$disk)$/) {
} elsif ($vm_type eq 'lxc' && $path =~ m/^\/(\w+.+)(\/(\w+.*))*(\/$disk)$/) {
$disks->{$num}->{pool} = $1;
$disks->{$num}->{all} = $disks->{$num}->{pool};
if ($2) {
$disks->{$num}->{path} = $2;
$disks->{$num}->{path} = $3;
$disks->{$num}->{all} .= "\/$disks->{$num}->{path}";
}