has_feature : template
for plugin-rbd-sheepdog-nexenta + indentation fix Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
2c5a70971a
commit
5649ccfe89
@ -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) =
|
||||
|
||||
@ -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} },
|
||||
};
|
||||
|
||||
@ -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) =
|
||||
|
||||
@ -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},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user