]> git.proxmox.com Git - pve-storage.git/commitdiff
nfs: code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 27 Nov 2020 09:45:06 +0000 (10:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 27 Nov 2020 09:45:06 +0000 (10:45 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/NFSPlugin.pm

index c94fb910d5b5cb306fbff746f5685cb386e9a2ee..f8d7e68eeba9436b6e6aebf5123d3d9b6cd84f02 100644 (file)
@@ -127,11 +127,8 @@ sub activate_storage {
     my $server = $scfg->{server};
     my $export = $scfg->{export};
 
-    if (!nfs_is_mounted($server, $export, $path, $cache->{mountdata})) {    
-                   
-       # NOTE: only call mkpath when not mounted (avoid hang 
-       # when NFS server is offline 
-                   
+    if (!nfs_is_mounted($server, $export, $path, $cache->{mountdata})) {
+       # NOTE: only call mkpath when not mounted (avoid hang when NFS server is offline
        mkpath $path if !(defined($scfg->{mkdir}) && !$scfg->{mkdir});
 
        die "unable to activate storage '$storeid' - " .