[SCM] CTDB repository - branch master updated - ctdb-1.0.114-300-g96cbd2c
Ronnie Sahlberg
sahlberg at samba.org
Tue Aug 31 23:51:14 MDT 2010
The branch, master has been updated
via 96cbd2c0aa9a4641a42b3c33374675fa732ed1e5 (commit)
from 1a41cd7332703629001201eea8ae9b94f1341c9d (commit)
http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 96cbd2c0aa9a4641a42b3c33374675fa732ed1e5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Sep 1 15:48:55 2010 +1000
make sure all statd state directories exist before we try to reference them
or else tar and friends will throw an error in the log
-----------------------------------------------------------------------
Summary of changes:
config/statd-callout | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/config/statd-callout b/config/statd-callout
index 461cd81..9808cb9 100755
--- a/config/statd-callout
+++ b/config/statd-callout
@@ -45,6 +45,7 @@ case "$1" in
continue
}
IP=`echo $LINE | cut -f2 -d:`
+ mkdir -p $CTDB_BASE/state/statd/ip/$IP
/bin/rm -f $CTDB_BASE/state/statd/ip/$IP/$2
done
;;
@@ -58,6 +59,8 @@ case "$1" in
}
IP=`echo $LINE | cut -f2 -d:`
+ mkdir -p $CTDB_BASE/state/statd/ip/$IP
+
rm -f $CTDB_BASE/state/statd/ip/$IP.tar
tar cfP $CTDB_BASE/state/statd/ip/$IP.tar $CTDB_BASE/state/statd/ip/$IP
@@ -90,6 +93,8 @@ case "$1" in
}
IP=`echo $LINE | cut -f2 -d:`
+ mkdir -p $CTDB_BASE/state/statd/ip/$IP
+
rm -f $CTDB_BASE/state/statd/ip/$IP.rec
ctdb pfetch ctdb.tdb statd-state:$IP $CTDB_BASE/state/statd/ip/$IP.rec 2>/dev/null
[ "$?" = "0" ] || {
--
CTDB repository
More information about the samba-cvs
mailing list