Re: "tgtadm --mode system --show" doesn't show global 'outgoing' users if there are no global incoming users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 22 Aug 2014 19:23:17 +0900 (JST)
FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote:

> Hi,
> 
> On Fri, 15 Aug 2014 16:39:18 +1000
> Phillip Brown <phillip.brown.j@xxxxxxxxx> wrote:
> 
>> Problem seems to be with this 'if' statement in targets.c:system_show
>> function
>> 
>> --------->> if (global_target.account.nr_inaccount) {
>>                                int i, aid;
>>                                concat_printf(b, _TAB1 "%s\n", "Account information:\n");
>>                                for (i = 0; i < global_target.account.nr_inaccount; i++) {
>>                                                aid = global_target.account.in_aids[i];
>>                                                concat_printf(b, _TAB1 "%s\n",
>>            __account_lookup_id(aid)->user);
>>                                }
>>                                if (global_target.account.out_aid) {
>>                                                aid = global_target.account.out_aid;
>>                                                concat_printf(b, _TAB1 "%s (outgoing)\n",
>>            __account_lookup_id(aid)->user);
>>                                }
>>                }
>> 
>> Does there really need to be that test?
> 
> Probably, I wrote the above code but can't recall why. Looks like we
> can remove the above 'if'. Can you send a patch?

Now I recalled.

With one-way CHAP authentication, a target authenticate initiators
(in account). The opposite is not supported. So if an out account
always needs in account(s).

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux