From 03b5bfdf9c512e5408b24d3b8583da8f4aa002ef Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Wed, 18 Jul 2012 13:35:02 +0200 Subject: [PATCH] iscsi: add check_connection Signed-off-by: Alexandre Derumier --- PVE/Storage/ISCSIPlugin.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm index 3113740..ef88143 100644 --- a/PVE/Storage/ISCSIPlugin.pm +++ b/PVE/Storage/ISCSIPlugin.pm @@ -371,4 +371,11 @@ sub deactivate_storage { } } +sub check_connection { + my ($class, $storeid, $scfg) = @_; + + my $portal = $scfg->{portal}; + return iscsi_test_portal($portal); +} + 1;