[pve-devel] [PATCH pve-zsync 08/11] parse_disks: the pool comes first in the path

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Sep 28 11:40:09 CEST 2015


---
 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.1.4





More information about the pve-devel mailing list