|
|
e7a346 |
From 8eb95b2ebdedd61e7784cf2f18b9564d2d4ed0b9 Mon Sep 17 00:00:00 2001
|
|
|
e7a346 |
From: Milind Changire <mchangir@redhat.com>
|
|
|
e7a346 |
Date: Thu, 13 Dec 2018 10:11:58 +0530
|
|
|
e7a346 |
Subject: [PATCH 468/493] core: move invalid port logs to DEBUG log level
|
|
|
e7a346 |
|
|
|
e7a346 |
Stop spamming "invalid port" logs in case sysadmin has reserved a large
|
|
|
e7a346 |
number of ports.
|
|
|
e7a346 |
|
|
|
e7a346 |
manline:
|
|
|
e7a346 |
> Change-Id: I244ef7693560cc404b36cadc6b05d92ec0e908d3
|
|
|
e7a346 |
> fixes: bz#1656517
|
|
|
e7a346 |
> Signed-off-by: Milind Changire <mchangir@redhat.com>
|
|
|
e7a346 |
> Reviewed-on: https://review.gluster.org/c/glusterfs/+/21809
|
|
|
e7a346 |
|
|
|
e7a346 |
Change-Id: I244ef7693560cc404b36cadc6b05d92ec0e908d3
|
|
|
e7a346 |
BUG: 1656217
|
|
|
e7a346 |
Signed-off-by: Milind Changire <mchangir@redhat.com>
|
|
|
e7a346 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/158483
|
|
|
e7a346 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
e7a346 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
e7a346 |
---
|
|
|
e7a346 |
libglusterfs/src/common-utils.c | 2 +-
|
|
|
e7a346 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
e7a346 |
|
|
|
e7a346 |
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c
|
|
|
e7a346 |
index 25600a9..1243754 100644
|
|
|
e7a346 |
--- a/libglusterfs/src/common-utils.c
|
|
|
e7a346 |
+++ b/libglusterfs/src/common-utils.c
|
|
|
e7a346 |
@@ -3373,7 +3373,7 @@ gf_ports_reserved (char *blocked_port, unsigned char *ports, uint32_t ceiling)
|
|
|
e7a346 |
if (blocked_port[strlen(blocked_port) -1] == '\n')
|
|
|
e7a346 |
blocked_port[strlen(blocked_port) -1] = '\0';
|
|
|
e7a346 |
if (gf_string2int32 (blocked_port, &tmp_port1) == 0) {
|
|
|
e7a346 |
- if (tmp_port1 > ceiling
|
|
|
e7a346 |
+ if (tmp_port1 > GF_PORT_MAX
|
|
|
e7a346 |
|| tmp_port1 < 0) {
|
|
|
e7a346 |
gf_msg ("glusterfs-socket", GF_LOG_WARNING, 0,
|
|
|
e7a346 |
LG_MSG_INVALID_PORT, "invalid port %d",
|
|
|
e7a346 |
--
|
|
|
e7a346 |
1.8.3.1
|
|
|
e7a346 |
|