[pve-devel] [PATCH 4/5] DRBD: indentation fixes as produced by vim.

Dietmar Maurer dietmar at proxmox.com
Thu Oct 15 08:58:58 CEST 2015


This one does not apply - please check, there is something wrong with 
this patch.

On 10/08/2015 10:24 AM, Philipp Marek wrote:
> ---
>   PVE/Storage/DRBDPlugin.pm | 10 +++++-----
>   1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/PVE/Storage/DRBDPlugin.pm b/PVE/Storage/DRBDPlugin.pm
> index b150b16..14f232b 100644
> --- a/PVE/Storage/DRBDPlugin.pm
> +++ b/PVE/Storage/DRBDPlugin.pm
> @@ -364,7 +364,7 @@ sub volume_resize {
>       $size = int($size/1024);
>       my $hdl = connect_drbdmanage_service();
>   
> -    # FIXME if there's ever more than one volume in a resource
> +# FIXME if there's ever more than one volume in a resource
>       my ($rc) = $hdl->resize_volume($volname, 0, 0, $size, 0);
>       check_drbd_res($rc);
>   
> @@ -393,17 +393,17 @@ sub volume_has_feature {
>       my ($class, $scfg, $feature, $storeid, $volname, $snapname, $running) = @_;
>   
>       my $features = {
> -	copy => { base => 1, current => 1},
> +        copy => { base => 1, current => 1},
>       };
>   
>       my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
> -	$class->parse_volname($volname);
> +        $class->parse_volname($volname);
>   
>       my $key = undef;
>       if($snapname){
> -	$key = 'snap';
> +        $key = 'snap';
>       }else{
> -	$key =  $isBase ? 'base' : 'current';
> +        $key =  $isBase ? 'base' : 'current';
>       }
>       return 1 if $features->{$feature}->{$key};
>   




More information about the pve-devel mailing list