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:
parent
b52d13b356
commit
ea3ede00fb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user