[pve-devel] [PATCH 25/48] lvm: add copy feature
Alexandre Derumier
aderumier at odiso.com
Tue Jan 29 17:14:07 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 ea0b634..f480fe9 100644
--- a/PVE/Storage/LVMPlugin.pm
+++ b/PVE/Storage/LVMPlugin.pm
@@ -455,6 +455,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