[pve-devel] [PATCH] rbd : clone volume to same pool that base volume

Alexandre Derumier aderumier at odiso.com
Tue May 14 09:01:10 CEST 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/RBDPlugin.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 81a7b98..e147346 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -326,7 +326,7 @@ sub clone_image {
 
     my $newvol = "$basename/$name";
 
-    my $cmd = &$rbd_cmd($scfg, $storeid, 'clone', $basename, '--snap', $snap, $name);
+    my $cmd = &$rbd_cmd($scfg, $storeid, 'clone', &$add_pool_to_disk($scfg, $basename), '--snap', $snap, &$add_pool_to_disk($scfg, $name));
     run_command($cmd, errmsg => "rbd clone $basename' error", errfunc => sub {});
 
     return $newvol;
-- 
1.7.10.4




More information about the pve-devel mailing list