[Cluster-devel] [PATCH] compare cluster name in cman daemon

Evgeniy Sokolov evg at openvz.org
Wed May 25 08:37:18 UTC 2011


On 25.05.2011 12:05, Christine Caulfield wrote:
> On 25/05/11 08:23, Evgeniy Sokolov wrote:
>> if length of cluster name = 16, last char of msg->clustername will not
>> be zero.
>> In this case strcmp will continue read member fence_agent from
>> cl_transmsg structure.
>>
>>
>
> If the length of the cluster name = 16 then there is a bug somewhere
> else that needs fixing ;-)
>
> Chrissie
>
>

Design of cl_transmsg->clustername[16] is string with max length 15 + 1 
char for zero. Is it correct?




More information about the Cluster-devel mailing list