[pve-devel] [PATCH 14/16] storage : has_feature : parse_volname

Alexandre Derumier aderumier at odiso.com
Sun Feb 3 09:49:41 CET 2013


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

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 50bd0c5..d61834b 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -190,7 +190,9 @@ sub volume_has_feature {
     if ($storeid) {
         my $scfg = storage_config($cfg, $storeid);
         my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
-        return $plugin->volume_has_feature($scfg, $feature, $storeid, $volname, $snap, $running);
+        my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
+            $plugin->parse_volname($volname);
+        return $plugin->volume_has_feature($scfg, $feature, $storeid, $name, $snap, $running, $isBase);
     } elsif ($volid =~ m|^(/.+)$| && -e $volid) {
 	return undef;
     } else {
-- 
1.7.10.4




More information about the pve-devel mailing list