[Linux-cluster] [PATCH] wrong strings in quorum disk registration.

Simone Gotti simone.gotti at email.it
Fri Jan 5 10:11:27 UTC 2007


Hi all,

on the openais based cman-2.0.35-2.el5 the output of "cman_tool nodes"
or "clustat" provides a wrong quorum device name:

[root at nodo01 ~]# cman_tool nodes
Node  Sts   Inc   Joined               Name
   0   X      0                        /dev/sdb1��
   1   M      4   2007-01-05 13:03:18  nodo01
   2   X      0                        nodo02

[root at nodo01 ~]# clustat
/dev/sdb1�� not found
realloc 924
Member Status: Quorate

  Member Name                        ID   Status
  ------ ----                        ---- ------
  nodo01                                1 Online, Local
  nodo02                                2 Offline
  /dev/sdb1��                       0 Online, Estranged


Looking at the code look like the call to info_call in
cman_register_quorum_device passed a too small by one "inlen" argument
missing the ending \0 of the device name string.
I attached a patch the should fix this, I hope it's correct.

Thanks!

Bye!
-- 
Simone Gotti

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Cassine di Pietra: una varietà completa di vini del Veneto, 
* in più un regalo per il primo ordine! Clicca subito qui
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3925&d=5-1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cman-2.0.35-libcman-cman_register_quorum_device-info_call.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20070105/b2407aa1/attachment.bin>


More information about the Linux-cluster mailing list