[pve-devel] [PATCH 37/44] nexenta : list_images
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:56:04 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/NexentaPlugin.pm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index ad8ac7d..77b199d 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -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) {
--
1.7.10.4
More information about the pve-devel
mailing list