]> git.proxmox.com Git - pve-storage.git/commitdiff
whitespace cleanup
authorTim Marx <t.marx@proxmox.com>
Mon, 9 Sep 2019 10:56:03 +0000 (12:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Sep 2019 13:27:26 +0000 (15:27 +0200)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
PVE/Storage/Plugin.pm

index 9a419f177b5489645f68cfafdb535a7b54dc3679..ed71fe430ddc287592e2fbdc4db59f867ab246fc 100644 (file)
@@ -651,7 +651,7 @@ sub alloc_image {
     if ($fmt eq 'subvol') {
        # only allow this if size = 0, so that user knows what he is doing
        die "storage does not support subvol quotas\n" if $size != 0;
-       
+
        my $old_umask = umask(0022);
        my $err;
        mkdir($path) or $err = "unable to create subvol '$path' - $!\n";
@@ -661,7 +661,7 @@ sub alloc_image {
        my $cmd = ['/usr/bin/qemu-img', 'create'];
 
        push @$cmd, '-o', 'preallocation=metadata' if $fmt eq 'qcow2';
-       
+
        push @$cmd, '-f', $fmt, $path, "${size}K";
 
        eval { run_command($cmd, errmsg => "unable to create image"); };
@@ -671,7 +671,7 @@ sub alloc_image {
            die "$@";
        }
     }
-    
+
     return "$vmid/$name";
 }
 
@@ -701,7 +701,7 @@ sub free_image {
     # all images from a guest got deleted
     my $dir = dirname($path);
     rmdir($dir);
-    
+
     return undef;
 }
 
@@ -711,7 +711,7 @@ sub file_size_info {
     if (-d $filename) {
        return wantarray ? (0, 'subvol', 0, undef) : 1;
     }
-    
+
     my $cmd = ['/usr/bin/qemu-img', 'info', $filename];
 
     my $format;
@@ -785,9 +785,9 @@ sub volume_snapshot {
 }
 
 sub volume_rollback_is_possible {
-    my ($class, $scfg, $storeid, $volname, $snap) = @_; 
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
 
-    return 1; 
+    return 1;
 }
 
 sub volume_snapshot_rollback {