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 b0b7cfe8bca..8fd44a1f3f8 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -1848,6 +1848,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}; @@ -1960,6 +1961,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"); |