mirror of
git://git.proxmox.com/git/pve-zsync.git
synced 2025-03-11 20:58:42 +03:00
improve error msg
This commit is contained in:
parent
aec521ca2e
commit
9303e6fc81
@ -761,6 +761,8 @@ sub parse_disks {
|
|||||||
push @$cmd, 'pvesm', 'path', "$stor$disk";
|
push @$cmd, 'pvesm', 'path', "$stor$disk";
|
||||||
my $path = run_cmd($cmd);
|
my $path = run_cmd($cmd);
|
||||||
|
|
||||||
|
die "Get no path from pvesm path $stor$disk\n" if !$path;
|
||||||
|
|
||||||
if ($vm_type eq 'qemu' && $path =~ m/^\/dev\/zvol\/(\w+.*)(\/$disk)$/) {
|
if ($vm_type eq 'qemu' && $path =~ m/^\/dev\/zvol\/(\w+.*)(\/$disk)$/) {
|
||||||
|
|
||||||
my @array = split('/', $1);
|
my @array = split('/', $1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user