[pve-devel] applied: [PATCH storage] ISCSIPlugin: Use long options for readability

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Oct 9 10:50:48 CEST 2017


On Mon, Oct 09, 2017 at 10:39:18AM +0200, Emmanuel Kasper wrote:
> 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 $@;
>      }
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list