[pve-devel] [PATCH 5/8] sheepdog : add volume_clone
Alexandre Derumier
aderumier at odiso.com
Mon Nov 5 14:46:04 CET 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/SheepdogPlugin.pm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index 5aff893..d98939e 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -295,4 +295,12 @@ sub volume_snapshot_delete {
return undef;
}
+sub volume_clone {
+ my ($class, $scfg, $storeid, $volnamesrc, $volnamedst, $snap, $running) = @_;
+
+ my $cmd = &$collie_cmd($scfg, 'vdi', 'clone', '-s', $snap, $volnamesrc, $volnamedst);
+ run_command($cmd, errmsg => "sheepdog clone $volnamesrc' error");
+
+}
+
1;
--
1.7.10.4
More information about the pve-devel
mailing list