From 3552535e9bb25aac4f72cd0c7251fc7b904c3373 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 28 Sep 2015 11:40:09 +0200 Subject: [PATCH] parse_disks: the pool comes first in the path --- pve-zsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2