[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/fence/agents/scsi scsi_reserve



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	rohara sourceware org	2006-12-12 23:20:47

Modified files:
	fence/agents/scsi: scsi_reserve 

Log message:
	Record devices that are successfully registered to /var/run/scsi_reserve.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/scsi_reserve.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.5&r2=1.1.2.6

--- cluster/fence/agents/scsi/scsi_reserve	2006/12/12 21:32:53	1.1.2.5
+++ cluster/fence/agents/scsi/scsi_reserve	2006/12/12 23:20:47	1.1.2.6
@@ -48,6 +48,8 @@
 
 touch /var/lock/subsys/scsi_reserve
 
+cat /dev/null > /var/run/scsi_reserve
+
 # register each device using our key
 #
 for dev in $scsi_devices
@@ -62,11 +64,13 @@
   done
 
   if [ $error -eq 0 ]; then
+      echo $dev >> /var/run/scsi_reserve
       success
   else
       # perhaps we are already resgistered
       #
       if sg_persist -d $dev -i -k 2>/dev/null | grep -qiE "${key#0}" ; then
+	  echo $dev >> /var/run/scsi_reserve
           success
       else
           failure


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]