[pve-devel] [PATCH 24/31] lvm: add copy feature
Alexandre Derumier
aderumier at odiso.com
Tue Jan 22 12:36:22 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/LVMPlugin.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm
index 5a0962c..8cc5d65 100644
--- a/PVE/Storage/LVMPlugin.pm
+++ b/PVE/Storage/LVMPlugin.pm
@@ -441,6 +441,13 @@ sub volume_snapshot_delete {
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