Re: [PATCH 1/2] iscsiadm: Fix the hostno check for stats submode of host mode

2014-02-28 Thread Mike Christie
On 02/24/2014 06:24 PM, Mike Christie wrote:
> Both patches look ok to me. Will merge later if no one has objections.
> Thanks.

Patches merged in commits:

b1526306e413f0874d608637cd2a9f6571ea4d32
f2ecc22d3cb0473b117a33e048a5a56cd8e9e46d

> 
> On 02/24/2014 02:14 AM, adheer.chandravan...@qlogic.com wrote:
>> From: Chris Leech 
>>
>> This fixes the condition where hostno value of 0 was being treated
>> as invalid.
>>
>> Signed-off-by: Chris Leech 
>> Signed-off-by: Adheer Chandravanshi 
>> ---
>>  usr/iscsiadm.c |2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
>> index 3cde8d1..36617ab 100644
>> --- a/usr/iscsiadm.c
>> +++ b/usr/iscsiadm.c
>> @@ -3470,7 +3470,7 @@ main(int argc, char **argv)
>> ¶ms);
>>  break;
>>  case MODE_HOST_STATS:
>> -if (!host_no) {
>> +if (host_no > MAX_HOST_NO) {
>>  log_error("STATS mode requires host 
>> no");
>>  rc = ISCSI_ERR_INVAL;
>>  break;
>>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [PATCH 1/2] iscsiadm: Fix the hostno check for stats submode of host mode

2014-02-24 Thread Mike Christie
Both patches look ok to me. Will merge later if no one has objections.
Thanks.

On 02/24/2014 02:14 AM, adheer.chandravan...@qlogic.com wrote:
> From: Chris Leech 
> 
> This fixes the condition where hostno value of 0 was being treated
> as invalid.
> 
> Signed-off-by: Chris Leech 
> Signed-off-by: Adheer Chandravanshi 
> ---
>  usr/iscsiadm.c |2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
> index 3cde8d1..36617ab 100644
> --- a/usr/iscsiadm.c
> +++ b/usr/iscsiadm.c
> @@ -3470,7 +3470,7 @@ main(int argc, char **argv)
>  ¶ms);
>   break;
>   case MODE_HOST_STATS:
> - if (!host_no) {
> + if (host_no > MAX_HOST_NO) {
>   log_error("STATS mode requires host 
> no");
>   rc = ISCSI_ERR_INVAL;
>   break;
> 

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/groups/opt_out.