From: Wolfgang Bumiller Date: Mon, 28 Sep 2015 09:40:09 +0000 (+0200) Subject: parse_disks: the pool comes first in the path X-Git-Url: https://git.proxmox.com/?p=pve-zsync.git;a=commitdiff_plain;h=3df8b97dc545b44f3f8fd3bc8a91e147a2e2e793 parse_disks: the pool comes first in the path --- diff --git a/pve-zsync b/pve-zsync index 492a245..c1af115 100644 --- a/pve-zsync +++ b/pve-zsync @@ -711,7 +711,7 @@ sub parse_disks { if ($path =~ m/^\/dev\/zvol\/(\w+.*)(\/$disk)$/) { my @array = split('/', $1); - $disks->{$num}->{pool} = pop(@array); + $disks->{$num}->{pool} = shift(@array); $disks->{$num}->{all} = $disks->{$num}->{pool}; if (0 < @array) { $disks->{$num}->{path} = join('/', @array);