]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/NexentaPlugin.pm
nexenta : list_images
[pve-storage.git] / PVE / Storage / NexentaPlugin.pm
index ad8ac7df6e79bf6451073f909a7d242e0d3c60c1..77b199d003e8f9c976a17163345ac0ddec2f5386 100644 (file)
@@ -331,8 +331,15 @@ sub list_images {
        foreach my $image (keys %$dat) {
 
             my $volname = $dat->{$image}->{name};
+            my $parent = $dat->{$image}->{parent};
 
-            my $volid = "$storeid:$volname";
+            my $volid = undef;
+            if ($parent && $parent =~ m/^(\S+)@(\S+)$/) {
+                my ($basename) = ($1);
+                $volid = "$storeid:$basename/$volname";
+            } else {
+                $volid = "$storeid:$volname";
+            }
 
             my $owner = $dat->{$volname}->{vmid};
             if ($vollist) {