5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-10 09:17:38 +03:00

parse_disks: don't drop the path inside the pool

This commit is contained in:
Wolfgang Bumiller 2015-09-28 11:40:08 +02:00 committed by Dietmar Maurer
parent b52d13b356
commit ea3ede00fb

View File

@ -708,7 +708,7 @@ sub parse_disks {
$cmd .= "pvesm path $stor$disk"; $cmd .= "pvesm path $stor$disk";
my $path = run_cmd($cmd); my $path = run_cmd($cmd);
if ($path =~ m/^\/dev\/zvol\/(\w+).*(\/$disk)$/) { if ($path =~ m/^\/dev\/zvol\/(\w+.*)(\/$disk)$/) {
my @array = split('/', $1); my @array = split('/', $1);
$disks->{$num}->{pool} = pop(@array); $disks->{$num}->{pool} = pop(@array);