[pve-devel] [PATCH 26/31] iscsiplugin : add copy feature
Alexandre Derumier
aderumier at odiso.com
Tue Jan 22 12:36:24 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/ISCSIPlugin.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm
index d150bb2..29ecd0e 100644
--- a/PVE/Storage/ISCSIPlugin.pm
+++ b/PVE/Storage/ISCSIPlugin.pm
@@ -386,6 +386,13 @@ sub volume_resize {
sub volume_has_feature {
my ($class, $scfg, $feature, $storeid, $volname, $snapname, $running) = @_;
+ my $features = {
+ copy => { current => 1},
+ };
+
+ my $snap = $snapname ? 'snap' : 'current';
+ return 1 if $features->{$feature}->{$snap};
+
return undef;
}
--
1.7.10.4
More information about the pve-devel
mailing list