mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
ctdb-scripts: Fix some bit-rotted comments and whitespace
The top comment in the file is no longer true. The comment about notifications doesn't really apply anymore since upstream sm-notify is used and it does "the right thing". shfmt wants to remove a space before a semicolon, so do that too. Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
e704eb580a
commit
b2084281a4
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# statd must be configured to use this script as its high availability call-out.
|
||||
# statd must be configured to use statd_callout, CTDB's binary
|
||||
# counterpart to this script, as its availability call-out.
|
||||
#
|
||||
# Modern NFS utils versions use /etc/nfs.conf:
|
||||
#
|
||||
@ -24,7 +25,7 @@
|
||||
# silently if /proc/fs/lockd/nlm_end_grace is not found.
|
||||
#
|
||||
|
||||
if [ -z "$CTDB_BASE" ] ; then
|
||||
if [ -z "$CTDB_BASE" ]; then
|
||||
export CTDB_BASE="/usr/local/etc/ctdb"
|
||||
fi
|
||||
|
||||
@ -227,28 +228,6 @@ notify)
|
||||
sleep 2
|
||||
"$CTDB_NFS_CALLOUT" "start" "nlockmgr" >/dev/null 2>&1
|
||||
|
||||
# we now need to send out additional statd notifications to ensure
|
||||
# that clients understand that the lockmanager has restarted.
|
||||
# we have three cases:
|
||||
# 1, clients that ignore the ip address the stat notification came from
|
||||
# and ONLY care about the 'name' in the notify packet.
|
||||
# these clients ONLY work with lock failover IFF that name
|
||||
# can be resolved into an ipaddress that matches the one used
|
||||
# to mount the share. (==linux clients)
|
||||
# This is handled when starting lockmanager above, but those
|
||||
# packets are sent from the "wrong" ip address, something linux
|
||||
# clients are ok with, buth other clients will barf at.
|
||||
# 2, Some clients only accept statd packets IFF they come from the
|
||||
# 'correct' ip address.
|
||||
# Send out the notification using the 'correct' ip address and also
|
||||
# specify the 'correct' hostname in the statd packet.
|
||||
# Some clients require both the correct source address and also the
|
||||
# correct name. (these clients also ONLY work if the ip addresses
|
||||
# used to map the share can be resolved into the name returned in
|
||||
# the notify packet.)
|
||||
#
|
||||
# For all IPs we serve, collect info and push to the config database
|
||||
|
||||
# Construct a sed expression to take catdb output and produce pairs of:
|
||||
# server-IP client-IP
|
||||
# but only for the server-IPs that are hosted on this node.
|
||||
|
Loading…
x
Reference in New Issue
Block a user