From mboxrd@z Thu Jan 1 00:00:00 1970 From: rohara@sourceware.org Date: 1 Dec 2006 17:53:07 -0000 Subject: [Cluster-devel] cluster/fence/agents/scsi fence_scsi.pl Message-ID: <20061201175307.32097.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL4 Changes by: rohara at sourceware.org 2006-12-01 17:53:07 Modified files: fence/agents/scsi: fence_scsi.pl Log message: Remove "self" parameter. This was used to specify the name of the node performing the fence operation, and was passed to the agent. This is no longer used. Instead, we get the name of the local node in the agent by parsing the output from 'cman_tool status'. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/fence_scsi.pl.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.5.6.2&r2=1.5.6.3 --- cluster/fence/agents/scsi/fence_scsi.pl 2006/11/29 23:19:04 1.5.6.2 +++ cluster/fence/agents/scsi/fence_scsi.pl 2006/12/01 17:53:07 1.5.6.3 @@ -145,10 +145,6 @@ { $opt_n = $val; } - elsif ($name eq "self") - { - $opt_s = $val; - } elsif ($name eq "verbose") { $opt_v = $val; @@ -254,21 +250,20 @@ if (@ARGV > 0) { - getopts("n:s:hqvV") || fail_usage; + getopts("n:hqvV") || fail_usage; usage if defined $opt_h; version if defined $opt_V; fail_usage "Unkown parameter." if (@ARGV > 0); + fail_usage "No '-n' flag specified." unless defined $opt_n; - fail_usage "No '-s' flag specified." unless defined $opt_s; } else { get_options_stdin(); fail "failed: missing 'node'" unless defined $opt_n; - fail "failed: missing 'self'" unless defined $opt_s; }