[pve-devel] [PATCH] has_feature : fix key = snap
Alexandre Derumier
aderumier at odiso.com
Fri Feb 15 10:01:56 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/ISCSIDirectPlugin.pm | 2 +-
PVE/Storage/ISCSIPlugin.pm | 2 +-
PVE/Storage/LVMPlugin.pm | 2 +-
PVE/Storage/NexentaPlugin.pm | 2 +-
PVE/Storage/Plugin.pm | 2 +-
PVE/Storage/RBDPlugin.pm | 2 +-
PVE/Storage/SheepdogPlugin.pm | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm
index e13e4e6..cc6a8c3 100644
--- a/PVE/Storage/ISCSIDirectPlugin.pm
+++ b/PVE/Storage/ISCSIDirectPlugin.pm
@@ -231,7 +231,7 @@ sub volume_has_feature {
my $key = undef;
if($snapname){
- $key = $snapname
+ $key = 'snap';
}else{
$key = $isBase ? 'base' : 'current';
}
diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm
index a368e17..8da7ec5 100644
--- a/PVE/Storage/ISCSIPlugin.pm
+++ b/PVE/Storage/ISCSIPlugin.pm
@@ -407,7 +407,7 @@ sub volume_has_feature {
my $key = undef;
if($snapname){
- $key = $snapname
+ $key = 'snap';
}else{
$key = $isBase ? 'base' : 'current';
}
diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm
index 5c90d83..845ebc5 100644
--- a/PVE/Storage/LVMPlugin.pm
+++ b/PVE/Storage/LVMPlugin.pm
@@ -462,7 +462,7 @@ sub volume_has_feature {
my $key = undef;
if($snapname){
- $key = $snapname
+ $key = 'snap';
}else{
$key = $isBase ? 'base' : 'current';
}
diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index 4c6fe2e..1b0f683 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -489,7 +489,7 @@ sub volume_has_feature {
my $key = undef;
if($snapname){
- $key = $snapname
+ $key = 'snap';
}else{
$key = $isBase ? 'base' : 'current';
}
diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm
index 5ff114a..ebeb78b 100644
--- a/PVE/Storage/Plugin.pm
+++ b/PVE/Storage/Plugin.pm
@@ -696,7 +696,7 @@ sub volume_has_feature {
my $key = undef;
if($snapname){
- $key = $snapname
+ $key = 'snap';
}else{
$key = $isBase ? 'base' : 'current';
}
diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index a460826..00c93d2 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -479,7 +479,7 @@ sub volume_has_feature {
my $key = undef;
if($snapname){
- $key = $snapname
+ $key = 'snap';
}else{
$key = $isBase ? 'base' : 'current';
}
diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index 46c2bd5..d506b57 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -440,7 +440,7 @@ sub volume_has_feature {
my $key = undef;
if($snapname){
- $key = $snapname
+ $key = 'snap';
}else{
$key = $isBase ? 'base' : 'current';
}
--
1.7.10.4
More information about the pve-devel
mailing list