diff options
author | merfi <lahoucine@benlahmr.com> | 2012-09-01 20:34:09 +0200 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-07 16:48:33 -0800 |
commit | 9869c0f86675d7bf44ecfc246185e4a5fff21c63 (patch) | |
tree | 12a5f6257c09625ff29ce2f0d5c4b033e6d52f17 /xlators/mgmt/glusterd | |
parent | 779004dbcd79e34a0c7ce73f574419b40ccade27 (diff) |
glusterfsd can't listen in a specified address
When specifying transport.socket.bind-address option,
only the glusterd daemon uses this address. But glusterfsd
still working with the default localhost address. For
instance, when we want to use an IPV6 specific address we
will want that all process use that specified address even
glusterfsd.
To handle this change we just need to replace the fixed
address “localhost” to the specified brick address
“brickinfo->hostname”
Change-Id: I540d30e6c155f71379a1cf1c0b459ac00faeb62c
BUG: 865327
Signed-off-by: Lahoucine BENLAHMR <lahoucine@benlahmr.com>
Reviewed-on: http://review.gluster.org/3889
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 285f8cc662f..14a32726abb 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -1364,7 +1364,7 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo, (void) snprintf (glusterd_uuid, 1024, "*-posix.glusterd-uuid=%s", uuid_utoa (MY_UUID)); runner_add_args (&runner, SBIN_DIR"/glusterfsd", - "-s", "localhost", "--volfile-id", volfile, + "-s", brickinfo->hostname, "--volfile-id", volfile, "-p", pidfile, "-S", socketpath, "--brick-name", brickinfo->path, "-l", brickinfo->logfile, |