ipvsadm: Fix list daemon to show backup daemon
PATCH 1/1 ipvsadm: Fix list daemon to show backup daemon
The list_daemon function in ipvsadm.c will show the master daemon twice, but never the backup daemon. This patch replaces the redundant check for IP_VS_STATE_MASTER with a check for IP_VS_STATE_BACKUP, then prints the appropriate message.
--- ipvsadm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
ipvsadm.c +2 -2
@@ -1732,8 +1732,8 @@ static void list_daemon(void)if (u[i].state &IP_VS_STATE_MASTER )printf ("master sync daemon (mcast=%s, syncid=%d)\n" , u[i].mcast_ifn, u[i].syncid); -if (u[i].state &IP_VS_STATE_MASTER ) -printf ("master sync daemon (mcast=%s, syncid=%d)\n" , +if (u[i].state &IP_VS_STATE_BACKUP ) +printf ("backup sync daemon (mcast=%s, syncid=%d)\n" , u[i].mcast_ifn, u[i].syncid); }free (u);
Signature · 1 line
1.9.0
Hello,
Quoted 6 lines · Ryan O'Hara
The
list_daemonfunction inipvsadm.cwill show the master daemon twice, but never the backup daemon. This patch replaces the redundant check forIP_VS_STATE_MASTERwith a check forIP_VS_STATE_BACKUP, then prints the appropriate message.Signed-off-by Ryan O'Hara <[email protected]>
In case you still wait for ack:
Quoted 21 lines
--- ipvsadm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)ipvsadm.c +2
-2@@ -1732,8 +1732,8 @@ static void list_daemon(void)if (u[i].state &IP_VS_STATE_MASTER )printf ("master sync daemon (mcast=%s, syncid=%d)\n" , u[i].mcast_ifn, u[i].syncid); -if (u[i].state &IP_VS_STATE_MASTER ) -printf ("master sync daemon (mcast=%s, syncid=%d)\n" , +if (u[i].state &IP_VS_STATE_BACKUP ) +printf ("backup sync daemon (mcast=%s, syncid=%d)\n" , u[i].mcast_ifn, u[i].syncid); }free (u);Signature · 1 line
1.9.0
Regards
--
Julian Anastasov <[email protected]>
Quoted 7 lines · On Fri, 6 Jun 2014 10:24:09 +0300 (EEST) Julian Anastasov <[email protected]> wrote:
Quoted 5 lines · Ryan O'Hara
The
list_daemonfunction inipvsadm.cwill show the master daemon twice, but never the backup daemon. This patch replaces the redundant check forIP_VS_STATE_MASTERwith a check forIP_VS_STATE_BACKUP, then prints the appropriate message.
Quoted 5 lines
Quoted 1 line
Signed-off-by Ryan O'Hara <[email protected]>In case you still wait for ack:
Acked-by Julian Anastasov <[email protected]>
Applied and pushed:
https://git.kernel.org/cgit/utils/kernel/ipvsadm/ipvsadm.git/commit/?id=4cebeb8ea66
Thank you!
Signature · 5 lines
Best regards, Jesper Dangaard Brouer MSc.CS, Sr. Network Kernel Developer at Red Hat Author of http://www.iptv-analyzer.org LinkedIn: http://www.linkedin.com/in/brouer
Simon Horman
maintainerQuoted 9 lines · Jesper Dangaard Brouer
Quoted 7 lines · On Fri, 6 Jun 2014 10:24:09 +0300 (EEST) Julian Anastasov <[email protected]> wrote:
Quoted 5 lines · Ryan O'Hara
The
list_daemonfunction inipvsadm.cwill show the master daemon twice, but never the backup daemon. This patch replaces the redundant check forIP_VS_STATE_MASTERwith a check forIP_VS_STATE_BACKUP, then prints the appropriate message.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Ryan O'Hara <[email protected]>In case you still wait for ack:
Acked-by Julian Anastasov <[email protected]>Applied and pushed:
https://git.kernel.org/cgit/utils/kernel/ipvsadm/ipvsadm.git/commit/?id=4cebeb8ea66
Thanks Jesper,
I wonder if we should consider making a bugfix release in the not to distant future.
Quoted 16 lines · On Wed, 11 Jun 2014 08:48:42 +0900 Simon Horman <[email protected]> wrote:
Quoted 15 lines · Jesper Dangaard Brouer
Quoted 12 lines · On Fri, 6 Jun 2014 10:24:09 +0300 (EEST) Julian Anastasov <[email protected]> wrote:
Quoted 6 lines · Ryan O'Hara
The
list_daemonfunction inipvsadm.cwill show the master daemon twice, but never the backup daemon. This patch replaces the redundant check forIP_VS_STATE_MASTERwith a check forIP_VS_STATE_BACKUP, then prints the appropriate message.Signed-off-by Ryan O'Hara <[email protected]>In case you still wait for ack:
Acked-by Julian Anastasov <[email protected]>
Quoted 7 lines
Quoted 2 lines
Applied and pushed:
https://git.kernel.org/cgit/utils/kernel/ipvsadm/ipvsadm.git/commit/?id=4cebeb8ea66Thanks Jesper,
I wonder if we should consider making a bugfix release in the not to distant future.
We only have two commits/fixes since the last release, both by Ryan (thanks Ryan)
https://git.kernel.org/cgit/utils/kernel/ipvsadm/ipvsadm.git/commit/?id=cd824937ad6
https://git.kernel.org/cgit/utils/kernel/ipvsadm/ipvsadm.git/commit/?id=4cebeb8ea66
Signature · 5 lines
Best regards, Jesper Dangaard Brouer MSc.CS, Sr. Network Kernel Developer at Red Hat Author of http://www.iptv-analyzer.org LinkedIn: http://www.linkedin.com/in/brouer