nfs: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-11-27 10:45:06 +01:00
parent 39591d92ec
commit 74dcca3a48

View File

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