]> git.proxmox.com Git - pve-storage.git/commitdiff
nexenta: skip disks whith no owner
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 27 May 2013 04:38:14 +0000 (06:38 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 27 May 2013 04:40:37 +0000 (06:40 +0200)
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

index 3422b0238cc5aef8ba19b5bf8170e6523a074ce1..857df542298286136eea028fabd94fc7fef1c1d3 100644 (file)
@@ -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);