From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29493 invoked by alias); 27 Mar 2009 14:27:21 -0000 Received: (qmail 29487 invoked by alias); 27 Mar 2009 14:27:20 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: cluster: RHEL5 - fence_xvmd: Make -L imply -X. To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/RHEL5 X-Git-Reftype: branch X-Git-Oldrev: 6c86348ae517dcb8d449343ae3d69f8cf41568ef X-Git-Newrev: 3df8a3340b731b3f1c4911e45092a4a4680c5543 From: Lon Hohberger Message-Id: <20090327142624.16635120150@lists.fedorahosted.org> Date: Fri, 27 Mar 2009 14:27:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00920.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=3df8a3340b731b3f1c4911e45092a4a4680c5543 Commit: 3df8a3340b731b3f1c4911e45092a4a4680c5543 Parent: 6c86348ae517dcb8d449343ae3d69f8cf41568ef Author: Lon Hohberger AuthorDate: Fri Mar 27 10:11:06 2009 -0400 Committer: Lon Hohberger CommitterDate: Fri Mar 27 10:26:05 2009 -0400 fence_xvmd: Make -L imply -X. Obvious change: local only should imply no-cluster mode. Signed-off-by: Lon Hohberger Signed-off-by: Fabio M. Di Nitto --- fence/agents/xvm/options.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fence/agents/xvm/options.c b/fence/agents/xvm/options.c index 9490b25..1508206 100644 --- a/fence/agents/xvm/options.c +++ b/fence/agents/xvm/options.c @@ -263,6 +263,7 @@ assign_noccs(fence_xvm_args_t *args, struct arg_info *arg, char *value) static inline void assign_nocluster(fence_xvm_args_t *args, struct arg_info *arg, char *value) { + args->flags |= F_NOCCS; args->flags |= F_NOCLUSTER; } @@ -346,7 +347,7 @@ static struct arg_info _arg_info[] = { assign_noccs }, { 'L', "-L", NULL, - "Local mode only (no cluster)", + "Local mode only (no cluster; implies -X)", assign_nocluster }, { 'V', "-V", NULL,