[Cluster-devel] cluster/fence/agents/scsi fence_scsi.pl

rohara at sourceware.org rohara at sourceware.org
Fri Dec 1 17:53:07 UTC 2006


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;
 
 }
 




More information about the Cluster-devel mailing list