[pve-devel] [PATCH 26/44] sheepdog : list_images
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:55:53 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/SheepdogPlugin.pm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index 2a06ac1..6e0c293 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -279,8 +279,14 @@ 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 ne $volname) {
+ $volid = "$storeid:$parent/$volname";
+ } else {
+ $volid = "$storeid:$volname";
+ }
my $owner = $dat->{$volname}->{vmid};
if ($vollist) {
--
1.7.10.4
More information about the pve-devel
mailing list