From 41d84bb6256bdd17df09cce3d51a89d44c117bab Mon Sep 17 00:00:00 2001 From: Mohamed Ashiq Date: Tue, 10 Nov 2015 13:18:41 +0530 Subject: libgfapi: To support set_volfile-server-transport type "unix" This patch helps libgfapi to get the volfile using Unix domain socket. run the attachment file in the bug to test. The patch checks if the glfs_set_volfile_server transport is of type "unix", If It is then uses rpc_transport_unix_options_build to get the volfile. Signed-off-by: Mohamed Ashiq Signed-off-by: Humble Devassy Chirammal >Change-Id: Ifd5d1e7c0d8cc9a906c3c3355b8977141e892a2f >BUG: 1279739 >Signed-off-by: Mohamed Ashiq >Signed-off-by: Humble Devassy Chirammal >Reviewed-on: http://review.gluster.org/12563 >Tested-by: NetBSD Build System >Tested-by: Gluster Build System >Reviewed-by: Niels de Vos >Reviewed-by: Poornima G >Reviewed-by: Raghavendra Talur >Reviewed-by: Shyamsundar Ranganathan Change-Id: I0b3f2023e6698366d8c20d6574f5de7b8a641f30 BUG: 1283038 Reviewed-on: http://review.gluster.org/12645 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- api/src/Makefile.am | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'api/src/Makefile.am') diff --git a/api/src/Makefile.am b/api/src/Makefile.am index 3c517e68072..5317adf1ddb 100644 --- a/api/src/Makefile.am +++ b/api/src/Makefile.am @@ -12,10 +12,13 @@ libgfapi_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \ $(top_builddir)/rpc/xdr/src/libgfxdr.la \ $(GF_LDADD) -libgfapi_la_CPPFLAGS = $(GF_CPPFLAGS) -D__USE_FILE_OFFSET64 \ - -I$(top_srcdir)/libglusterfs/src \ - -I$(top_srcdir)/rpc/rpc-lib/src \ - -I$(top_srcdir)/rpc/xdr/src +AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \ + -I$(top_srcdir)/rpc/rpc-lib/src \ + -I$(top_srcdir)/rpc/xdr/src \ + -DDATADIR=\"$(localstatedir)\" \ + -D__USE_FILE_OFFSET64 + +AM_CFLAGS = -Wall $(GF_CFLAGS) libgfapi_la_LDFLAGS = -version-info $(GFAPI_LT_VERSION) \ $(GFAPI_EXTRA_LDFLAGS) $(ACL_LIBS) @@ -35,6 +38,3 @@ api_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \ $(top_builddir)/rpc/xdr/src/libgfxdr.la \ $(top_builddir)/api/src/libgfapi.la -AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src - -AM_CFLAGS = -Wall $(GF_CFLAGS) -- cgit