has_feature : template

for plugin-rbd-sheepdog-nexenta

+ indentation fix

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2013-02-16 08:52:07 +01:00
committed by Dietmar Maurer
parent 2c5a70971a
commit 5649ccfe89
4 changed files with 11 additions and 7 deletions

View File

@ -481,7 +481,8 @@ sub volume_has_feature {
my $features = {
snapshot => { current => 1, snap => 1},
clone => { base => 1},
copy => { base => 1, current => 1},
template => { current => 1},
copy => { base => 1, current => 1},
};
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =

View File

@ -682,9 +682,10 @@ sub volume_has_feature {
my ($class, $scfg, $feature, $storeid, $volname, $snapname, $running) = @_;
my $features = {
snapshot => { current => { qcow2 => 1}, snap => { qcow2 => 1} },
clone => { base => {qcow2 => 1, raw => 1, vmdk => 1} },
copy => { base => {qcow2 => 1, raw => 1, vmdk => 1},
snapshot => { current => { qcow2 => 1}, snap => { qcow2 => 1} },
clone => { base => {qcow2 => 1, raw => 1, vmdk => 1} },
template => { current => {qcow2 => 1, raw => 1, vmdk => 1} },
copy => { base => {qcow2 => 1, raw => 1, vmdk => 1},
current => {qcow2 => 1, raw => 1, vmdk => 1},
snap => {qcow2 => 1} },
};

View File

@ -469,9 +469,10 @@ sub volume_has_feature {
my ($class, $scfg, $feature, $storeid, $volname, $snapname, $running) = @_;
my $features = {
snapshot => { current => 1, snap => 1},
clone => { base => 1},
copy => { base => 1, current => 1, snap => 1},
snapshot => { current => 1, snap => 1},
clone => { base => 1},
template => { current => 1},
copy => { base => 1, current => 1, snap => 1},
};
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =

View File

@ -432,6 +432,7 @@ sub volume_has_feature {
my $features = {
snapshot => { current => 1, snap => 1},
clone => { base => 1},
template => { current => 1},
copy => { base => 1, current => 1, snap => 1},
};