public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - rgmanager: Randomize fsck log name
@ 2009-05-21 14:29 Lon Hohberger
0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-05-21 14:29 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=0b686fd6e06cfb8305ffd6177836536d8868a108
Commit: 0b686fd6e06cfb8305ffd6177836536d8868a108
Parent: 3daae0e957e354efea3e6c4a99312f344cd341e2
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Wed May 20 18:02:15 2009 -0400
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu May 21 10:27:58 2009 -0400
rgmanager: Randomize fsck log name
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/src/resources/fs.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/resources/fs.sh b/rgmanager/src/resources/fs.sh
index e4d9316..cc2ff02 100755
--- a/rgmanager/src/resources/fs.sh
+++ b/rgmanager/src/resources/fs.sh
@@ -1019,7 +1019,7 @@ Unknown file system type '$fstype' for device $dev. Assuming fsck is required."
#
if [ -n "$fsck_needed" ] || [ "${OCF_RESKEY_force_fsck}" = "yes" ] ||\
[ "${OCF_RESKEY_force_fsck}" = "1" ]; then
- typeset fsck_log=/tmp/$(basename $dev).fsck.log
+ typeset fsck_log=$(mktemp /tmp/fs-$OCF_RESKEY_name.fsck.log.XXXXXX)
ocf_log debug "Running fsck on $dev"
fsck -p $dev >> $fsck_log 2>&1
ret_val=$?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-21 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-21 14:29 cluster: RHEL5 - rgmanager: Randomize fsck log name Lon Hohberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).