]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd: indentation and whitespace cleanups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Apr 2021 11:48:27 +0000 (13:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Apr 2021 11:48:27 +0000 (13:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/RBDPlugin.pm

index af3474322dfc5c5ec898b5ec01dde043659e58c8..1566571e63376c58f2eeac81848a2dad9c82f314 100644 (file)
@@ -147,7 +147,7 @@ sub run_rbd_command {
            *STDERR->flush();
        };
     }
-    
+
     eval { run_command($cmd, %args); };
     if (my $err = $@) {
        die $errmsg . $lasterr if length($lasterr);
@@ -290,7 +290,7 @@ sub properties {
            description => "Pool.",
            type => 'string',
        },
-       namespace=> {
+       namespace => {
            description => "RBD Namespace.",
            type => 'string',
        },
@@ -723,7 +723,6 @@ sub volume_snapshot_delete {
 }
 
 sub volume_snapshot_needs_fsfreeze {
-
     return 1;
 }
 
@@ -738,14 +737,13 @@ sub volume_has_feature {
        sparseinit => { base => 1, current => 1},
     };
 
-    my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
-        $class->parse_volname($volname);
+    my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) = $class->parse_volname($volname);
 
     my $key = undef;
-    if($snapname){
+    if ($snapname){
        $key = 'snap';
-    }else{
-       $key =  $isBase ? 'base' : 'current';
+    } else {
+       $key = $isBase ? 'base' : 'current';
     }
     return 1 if $features->{$feature}->{$key};