[pve-devel] [PATCH] sheepdog : fix create_base with storeid !='sheepdog'

Alexandre Derumier aderumier at odiso.com
Fri Jun 21 14:46:13 CEST 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/SheepdogPlugin.pm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index ab25f98..eb42cf4 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -127,7 +127,7 @@ sub parse_volname {
 	return ('images', $4, $7, $2, $3, $5);
     }
 
-    die "unable to parse rbd volume name '$volname'\n";
+    die "unable to parse sheepdog volume name '$volname'\n";
 }
 
 sub path {
@@ -179,8 +179,8 @@ sub create_base {
     die "create_base not possible with base image\n" if $isBase;
 
     my $sheepdog = sheepdog_ls($scfg, $storeid);
-    die "sheepdog volume info on '$name' failed\n" if !($sheepdog->{sheepdog}->{$name});
-    my $parent = $sheepdog->{sheepdog}->{$name}->{parent};
+    die "sheepdog volume info on '$name' failed\n" if !($sheepdog->{$storeid}->{$name});
+    my $parent = $sheepdog->{$storeid}->{$name}->{parent};
 
     die "volname '$volname' contains wrong information about parent $parent $basename\n"
         if $basename && (!$parent || $parent ne $basename);
-- 
1.7.10.4




More information about the pve-devel mailing list