commit 25a4785a06376ff410cd5d35b08c6c5c7411e33e Author: Ryan O'Hara <rohara@redhat.com> Date: Mon Nov 16 10:40:58 2009 -0600 CMAN: fence_scsi_test should not allow -c and -s options together The fence_scsi_test program is intended to run in one of two modes: cluster (-c) and scsi (-s). These cmd line arguments should not be allowed together. rhbz#528832 diff --git a/fence/agents/scsi/fence_scsi_test.pl b/fence/agents/scsi/fence_scsi_test.pl index 65e0c30..e24ef61 100755 --- a/fence/agents/scsi/fence_scsi_test.pl +++ b/fence/agents/scsi/fence_scsi_test.pl @@ -231,6 +231,11 @@ if ($opt_h) exit(0); } +if ($opt_c && $opt_s) { + print_usage; + exit(1); +} + if ($opt_c) { print "\nTesting devices in cluster volumes...\n";