diff options
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index fdf4a1c993d..0aa8e5db0e8 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -1348,6 +1348,7 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo, char logfile[PATH_MAX] = {0,}; int port = 0; int rdma_port = 0; + char *bind_address = NULL; char socketpath[PATH_MAX] = {0}; char glusterd_uuid[1024] = {0,}; char valgrind_logfile[PATH_MAX] = {0}; @@ -1444,6 +1445,13 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo, runner_argprintf (&runner, "%s-server.listen-port=%d", volinfo->volname, port); + if (dict_get_str (this->options, "transport.socket.bind-address", + &bind_address) == 0) { + runner_add_arg (&runner, "--xlator-option"); + runner_argprintf (&runner, "transport.socket.bind-address=%s", + bind_address); + } + if (volinfo->memory_accounting) runner_add_arg (&runner, "--mem-accounting"); |