Rename FENCE_KDUMP_NODES to FENCE_KDUMP_NODES_FILE

Renames FENCE_KDUMP_NODES variable to FENCE_KDUMP_NODES_FILE to
distinguish it from values read from fence_kdump_nodes option in
kdump.conf (introduced in following patches).

Bug-Url: https://bugzilla.redhat.com/1078134
Signed-off-by: Martin Perina <mperina@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Martin Perina 2014-04-02 10:33:42 +02:00 committed by WANG Chao
parent 98d4be908a
commit 48f4375f2e
3 changed files with 4 additions and 4 deletions

View File

@ -291,12 +291,12 @@ fence_kdump_notify()
{
local nodes
if [ -f $FENCE_KDUMP_NODES ]; then
if [ -f $FENCE_KDUMP_NODES_FILE ]; then
if [ -f $FENCE_KDUMP_CONFIG_FILE ]; then
. $FENCE_KDUMP_CONFIG_FILE
fi
read nodes < $FENCE_KDUMP_NODES
read nodes < $FENCE_KDUMP_NODES_FILE
$FENCE_KDUMP_SEND $FENCE_KDUMP_OPTS $nodes &
fi
}

View File

@ -442,7 +442,7 @@ kdump_check_fence_kdump () {
done
echo
echo "$nodes" > ${initdir}/$FENCE_KDUMP_NODES
echo "$nodes" > ${initdir}/$FENCE_KDUMP_NODES_FILE
dracut_install $FENCE_KDUMP_SEND
dracut_install -o $FENCE_KDUMP_CONFIG_FILE
}

View File

@ -5,7 +5,7 @@
FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump"
FENCE_KDUMP_SEND="/usr/libexec/fence_kdump_send"
FENCE_KDUMP_NODES="/etc/fence_kdump_nodes"
FENCE_KDUMP_NODES_FILE="/etc/fence_kdump_nodes"
is_ssh_dump_target()
{