All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 1/2] fence_scsi: move key file to /var/run/cluster
@ 2011-03-01 15:55 Ryan O'Hara
  2011-03-01 16:04 ` Fabio M. Di Nitto
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan O'Hara @ 2011-03-01 15:55 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Since the contents of /var/run/cluster/ directory are cleared on each
reboot, move the fence_scsi.key file to that directory. This is useful
for watchdog checks as a means to avoid watchdog reboots when a node has
not yet unfenced or unfencing fails.

Signed-off-by: Ryan O'Hara <rohara@redhat.com>
---
 fence/agents/scsi/fence_scsi.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fence/agents/scsi/fence_scsi.pl b/fence/agents/scsi/fence_scsi.pl
index ae658ab..e162dfe 100644
--- a/fence/agents/scsi/fence_scsi.pl
+++ b/fence/agents/scsi/fence_scsi.pl
@@ -342,7 +342,7 @@ sub key_read ()
     my $self = (caller(0))[3];
     my $key;
 
-    open (\*FILE, "</var/lib/cluster/fence_scsi.key") or die "$!\n";
+    open (\*FILE, "</var/run/cluster/fence_scsi.key") or die "$!\n";
     chomp ($key = <FILE>);
     close (FILE);
 
@@ -353,7 +353,7 @@ sub key_write ($)
 {
     my $self = (caller(0))[3];
 
-    open (\*FILE, ">/var/lib/cluster/fence_scsi.key") or die "$!\n";
+    open (\*FILE, ">/var/run/cluster/fence_scsi.key") or die "$!\n";
     print FILE "$_[0]\n";
     close (FILE);
 
-- 
1.7.3.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-01 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 15:55 [Cluster-devel] [PATCH 1/2] fence_scsi: move key file to /var/run/cluster Ryan O'Hara
2011-03-01 16:04 ` Fabio M. Di Nitto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.