]> git.proxmox.com Git - pve-zsync.git/commitdiff
parse_disks: the pool comes first in the path
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 28 Sep 2015 09:40:09 +0000 (11:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 16 Oct 2015 09:00:13 +0000 (11:00 +0200)
pve-zsync

index 492a24507c1a0e42957eb01a0288603c61981a3a..c1af115860486b45f04ae3bc49b0dddf47b23ca6 100644 (file)
--- 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);