rbd: indentation and whitespace cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -290,7 +290,7 @@ sub properties {
|
|||||||
description => "Pool.",
|
description => "Pool.",
|
||||||
type => 'string',
|
type => 'string',
|
||||||
},
|
},
|
||||||
namespace=> {
|
namespace => {
|
||||||
description => "RBD Namespace.",
|
description => "RBD Namespace.",
|
||||||
type => 'string',
|
type => 'string',
|
||||||
},
|
},
|
||||||
@ -723,7 +723,6 @@ sub volume_snapshot_delete {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub volume_snapshot_needs_fsfreeze {
|
sub volume_snapshot_needs_fsfreeze {
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -738,14 +737,13 @@ sub volume_has_feature {
|
|||||||
sparseinit => { base => 1, current => 1},
|
sparseinit => { base => 1, current => 1},
|
||||||
};
|
};
|
||||||
|
|
||||||
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) = $class->parse_volname($volname);
|
||||||
$class->parse_volname($volname);
|
|
||||||
|
|
||||||
my $key = undef;
|
my $key = undef;
|
||||||
if($snapname){
|
if ($snapname){
|
||||||
$key = 'snap';
|
$key = 'snap';
|
||||||
}else{
|
} else {
|
||||||
$key = $isBase ? 'base' : 'current';
|
$key = $isBase ? 'base' : 'current';
|
||||||
}
|
}
|
||||||
return 1 if $features->{$feature}->{$key};
|
return 1 if $features->{$feature}->{$key};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user