From c55a499dfe32a157f4de2fc8e287c812bc3df74b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 27 May 2013 06:38:14 +0200 Subject: [PATCH] nexenta: skip disks whith no owner We also do this for LVM. Else I get: > qm rescan --vmid 100 Use of uninitialized value $owner in string ne at /usr/share/perl5/PVE/Storage/NexentaPlugin.pm line 356. --- PVE/Storage/NexentaPlugin.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index 3422b02..857df54 100644 --- a/PVE/Storage/NexentaPlugin.pm +++ b/PVE/Storage/NexentaPlugin.pm @@ -112,6 +112,8 @@ sub nexenta_list_zvol { if ($image =~ m/^((vm|base)-(\d+)-\S+)$/) { $owner = $3; + } else { + next; } my $props = nexenta_get_zvol_props($scfg, $zvol);