[pve-devel] [PATCH pve-zsync 07/11] parse_disks: don't drop the path inside the pool

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


---
 pve-zsync | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pve-zsync b/pve-zsync
index d784d19..492a245 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -708,7 +708,7 @@ sub parse_disks {
 	$cmd .= "pvesm path $stor$disk";
 	my $path = run_cmd($cmd);
 
-	if ($path =~ m/^\/dev\/zvol\/(\w+).*(\/$disk)$/) {
+	if ($path =~ m/^\/dev\/zvol\/(\w+.*)(\/$disk)$/) {
 
 	    my @array = split('/', $1);
 	    $disks->{$num}->{pool} = pop(@array);
-- 
2.1.4




More information about the pve-devel mailing list