[pve-devel] [PATCH 4/8] nexenta : add volume_clone
Alexandre Derumier
aderumier at odiso.com
Mon Nov 5 14:46:03 CET 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/NexentaPlugin.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index a5b6fe2..370a0e1 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -370,4 +370,11 @@ sub volume_snapshot_delete {
nexenta_request($scfg, 'destroy', 'snapshot', "$scfg->{pool}/$volname\@$snap", '');
}
+sub volume_clone {
+ my ($class, $scfg, $storeid, $volnamesrc, $volnamedst, $snap, $running) = @_;
+
+ nexenta_request($scfg, 'clone', 'zvol', "$scfg->{pool}/$volnamesrc\@$snap", "$scfg->{pool}/$volnamedst");
+
+}
+
1;
--
1.7.10.4
More information about the pve-devel
mailing list