From 31f0fd1d401f1a4c007fd44854f99f15aff2346b Mon Sep 17 00:00:00 2001 From: Mohamed Ashiq Date: Thu, 5 Nov 2015 20:22:02 +0530 Subject: afr:vol heal info fails when transport.socket.bind-address is set in glusterd Problem: If glusterd's bind address is specified using transport.socket.bind- address option to a specific IP, the heal command 'gluster volume heal info' fails with error ': Not able to fetch volfile from glusterd.Volume heal failed.' This patch uses Unix domain socket transport type of libglfapi to get the volfile. Change-Id: Ic4239b339f0246d77f1622c07d5f4708129d30c7 BUG: 1277997 Signed-off-by: Mohamed Ashiq Signed-off-by: Humble Devassy Chirammal Reviewed-on: http://review.gluster.org/12508 Tested-by: Gluster Build System Reviewed-by: Ravishankar N Tested-by: NetBSD Build System Reviewed-by: Niels de Vos Reviewed-by: Anuradha Talur Reviewed-by: Pranith Kumar Karampuri --- heal/src/glfs-heal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'heal') diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c index 207e47297b5..2f120c9bd3d 100644 --- a/heal/src/glfs-heal.c +++ b/heal/src/glfs-heal.c @@ -19,6 +19,7 @@ #include "syncop-utils.h" #include #include +#include "glusterfs.h" #define DEFAULT_HEAL_LOG_FILE_DIRECTORY DATADIR "/log/glusterfs" #define USAGE_STR "Usage: %s [bigger-file | "\ @@ -756,7 +757,7 @@ main (int argc, char **argv) goto out; } - ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007); + ret = glfs_set_volfile_server (fs, "unix", DEFAULT_GLUSTERD_SOCKFILE, 0); if (ret) { printf("Setting the volfile server failed, %s\n", strerror (errno)); goto out; -- cgit