Am 18.01.24 um 12:11 schrieb Friedrich Weber:
> diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Storage/LVMPlugin.pm
> index 4b951e7..5377823 100644
> --- a/src/PVE/Storage/LVMPlugin.pm
> +++ b/src/PVE/Storage/LVMPlugin.pm
> @@ -130,6 +130,11 @@ sub lvm_vgs {
>  
>           my ($name, $size, $free, $lvcount, $pvname, $pvsize, $pvfree) = 
> split (':', $line);
>  
> +         if (!defined($size) || !defined($free) || !defined($lvcount)) {
> +             warn "unexpected output from vgs: $line\n";
> +             return;
> +         }
> +

Nit: maybe quote 'vgs' and/or say "command 'vgs'"?

Please use log_warn() from PVE::RESTEnvironment for new warnings, so
they also show up in task logs.


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to