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

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