From 6b4acdb46010982bfa72da7c81f39dbfb766542f Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Mon, 9 Oct 2017 10:39:18 +0200 Subject: [PATCH] ISCSIPlugin: Use long options for readability We otherwise use the long options everywhere in the plugin. This will build the following command: iscsiadm --mode session --sid 1 --rescan Rescanning session [sid: 1, target: xxx, portal: yyy] --- PVE/Storage/ISCSIPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm index 326de9d..aef8675 100644 --- a/PVE/Storage/ISCSIPlugin.pm +++ b/PVE/Storage/ISCSIPlugin.pm @@ -136,7 +136,7 @@ sub iscsi_session_rescan { } foreach my $session (@$session_list) { - my $cmd = [$ISCSIADM, '--mode', 'session', '-r', $session, '-R']; + my $cmd = [$ISCSIADM, '--mode', 'session', '--sid', $session, '--rescan']; eval { run_command($cmd, outfunc => sub {}); }; warn $@ if $@; }