diff --git a/PVE/Storage/NFSPlugin.pm b/PVE/Storage/NFSPlugin.pm index 63e03d2..b20f8ab 100644 --- a/PVE/Storage/NFSPlugin.pm +++ b/PVE/Storage/NFSPlugin.pm @@ -162,4 +162,12 @@ sub deactivate_storage { } } +sub check_connection { + my ($class, $storeid, $scfg) = @_; + + my $server = $scfg->{server}; + my $p = Net::Ping->new(); + return $p->ping($server, 2); + +} 1;