[Linux-ha-dev] [RFC] Change the behavior of cibadmin on dangerous options

Andrew Beekhof beekhof at gmail.com
Thu Dec 6 00:04:34 MST 2007


On Dec 6, 2007, at 2:31 AM, Xinwei Hu wrote:

> 2007/12/6, Andrew Beekhof <beekhof at gmail.com>:
>> done:
>>    http://hg.beekhof.net/lha/crm-dev/rev/6e4c6fb9d160
> Thanks :)
> However, I don't think reusing '--force-quorum ' is a good approach,
> that'll create
> confusions. Can you make some change to that ?

i forgot "force" had the "-quorum" suffix
i'll leave it there for compatibility and add just --force

diff -r 6e4c6fb9d160 crm/admin/cibadmin.c
--- a/crm/admin/cibadmin.c	Wed Dec 05 22:03:01 2007 +0100
+++ b/crm/admin/cibadmin.c	Thu Dec 06 08:03:08 2007 +0100
@@ -124,6 +124,7 @@ main(int argc, char **argv)
  		{"md5-sum",	 0, 0, '5'},
  		
  		{"force-quorum",0, 0, 'f'},
+		{"force",	0, 0, 'f'},
  		{"local",	0, 0, 'l'},
  		{"sync-call",	0, 0, 's'},
  		{"no-bcast",	0, 0, 'b'},




>
>>>
>>>>
>>>> Regards,
>>>>   Lars
>>>>
>>>> --
>>>> Teamlead Kernel, SuSE Labs, Research and Development
>>>> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
>>>> "Experience is the name everyone gives to their mistakes." -- Oscar
>>>> Wilde
>>>>
>>>> _______________________________________________________
>>>> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>>> Home Page: http://linux-ha.org/
>>>>
>>> <
>>> cibadmin
>>> .patch>_______________________________________________________
>>> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>>> Home Page: http://linux-ha.org/
>>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/



More information about the Linux-HA-Dev mailing list