LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH 1/2] ipvsadm: Fix wrong format of -o option in FMT_RULE listing

To: lvs-devel@xxxxxxxxxxxxxxx
Subject: [PATCH 1/2] ipvsadm: Fix wrong format of -o option in FMT_RULE listing
Cc: Simon Horman <horms@xxxxxxxxxxxx>
From: Krzysztof Gajdemski <songo@xxxxxxxxxxxxx>
Date: Thu, 21 Mar 2013 11:40:06 +0100
'ipvsadm -S' listed one-packet scheduling option in wrong format
('ops' instead of '--ops' or '-o') preventing any service with OPS
feature from restoring using 'ipvsadm -R'.  Now we use '-o' which
works well with save/restore commands.

Signed-off-by: Krzysztof Gajdemski <songo@xxxxxxxxxxxxx>
---
 ipvsadm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipvsadm.c b/ipvsadm.c
index 9afd125..587bfc1 100644
--- a/ipvsadm.c
+++ b/ipvsadm.c
@@ -1487,7 +1487,7 @@ print_service_entry(ipvs_service_entry_t *se, unsigned 
int format)
                if (se->pe_name[0])
                        printf(" pe %s", se->pe_name);
                if (se->flags & IP_VS_SVC_F_ONEPACKET)
-                       printf(" ops");
+                       printf(" -o");
        } else if (format & FMT_STATS) {
                printf("%-33s", svc_name);
                print_largenum(se->stats.conns, format);
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 1/2] ipvsadm: Fix wrong format of -o option in FMT_RULE listing, Krzysztof Gajdemski <=