[pve-devel] [PATCH 18/31] iscsidirect : add volume_clone

Alexandre Derumier aderumier at odiso.com
Tue Jan 8 15:45:24 CET 2013


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

diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm
index 95faa8a..41b8786 100644
--- a/PVE/Storage/ISCSIDirectPlugin.pm
+++ b/PVE/Storage/ISCSIDirectPlugin.pm
@@ -219,4 +219,9 @@ sub volume_protect {
     die "you can't protect an iscsi device";
 }
 
+sub volume_clone {
+    my ($class, $scfg, $storeid, $volname, $snap, $vmid) = @_;
+    die "volume cloning is not possible on iscsi device";
+}
+
 1;
-- 
1.7.10.4




More information about the pve-devel mailing list