Skip to contentSkip to conversation

ipvsadm: Fix list daemon to show backup daemon

PATCH In review Ryan O'Hara 4 participants 5 messages May 21, 2014 – Jun 11, 2014 IPVS

lore
Share & tools
lore
#0 lore raw

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
index 4c83a8b..755827f 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw

Hello,

Quoted 6 lines · Ryan O'Hara

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.

In case you still wait for ack:

Quoted 21 lines
---
 ipvsadm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ipvsadm.c +2 -2
index 4c83a8b..755827f 100644
@@ -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]>

#2 lore raw
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_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.

Quoted 5 lines
Quoted 1 line

In case you still wait for ack:

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
maintainer
#3 lore raw
Quoted 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_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.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

In case you still wait for ack:

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.

#4 lore raw
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_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.

In case you still wait for ack:

Quoted 7 lines
Quoted 2 lines

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.

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