Skip to contentSkip to conversation

cluster/fence/agents/scsi scsi_reserve

Cluster-devel [email protected] 1 participant 1 message Nov 27, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rohara at sourceware.org 2006-11-27 22:40:07

Modified files:
fence/agents/scsi: scsi_reserve

Log message:
Fix comment.
Fix exit status be rval.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/scsi_reserve.diff?cvsroot=cluster&r1=1.1&r2=1.2

fence/agents/scsi/scsi_reserve +4 -3
@@ -25,9 +25,9 @@
                 | awk --posix ' $1 ~ /[-a-z]{5}c/ { print $2 } ' \
                 | sed -e 's/([0-9]*)//' | sort | uniq )
 
-# if not scsi devices were found we can exit now
+# if no scsi devices were found we can exit now
 #
-[ -z "$scsi_devices" ] && exit 0
+[ -z $scsi_devices ] && exit 0
 
 # get the node name and node addr from cman
 #
@@ -136,4 +136,5 @@
 
 esac
 
-exit $status
+exit $rval
+