From: Ronnie Sahlberg Date: Sun, 9 Sep 2007 21:45:57 +0000 (+1000) Subject: update a comment X-Git-Tag: tevent-0.9.20~348^2~2430^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50381480eb4c9dda78074dea5b10c504a2ea9fc5;p=thirdparty%2Fsamba.git update a comment (This used to be ctdb commit e7d3ef4443686529299e8f293398cc0522235627) --- diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index 49be4073681..8c9e7ebd780 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -58,7 +58,6 @@ case $cmd in /bin/rm -f /etc/ctdb/state/statd/ip/$ip - #XXX we should only RST our local ports here # RST all tcp connections to the lockmanager [ ! -z "$LOCKD_TCPPORT" ] && { # RST all tcp connections used for NLM to ensure that they do @@ -75,9 +74,9 @@ case $cmd in } > /dev/null 2>&1 - # RST all tcp connections used for NFS to ensure that they do - # not survive in ESTABLISHED state across a failover/failback - # and create an ack storm + # RST the local side for all tcp connections used for NFS to ensure + # that they do not survive in ESTABLISHED state across a + # failover/failback and create an ack storm netstat -tn |egrep "^tcp.*\s+$ip:2049\s+.*ESTABLISHED" | awk '{print $4" "$5}' | while read dest src; do srcip=`echo $src | cut -d: -f1` srcport=`echo $src | cut -d: -f2`