Unix/socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

today I would like to test gluster using local unix socket (client and
server on the same machine) and I had to modify
source codes because there are option check on
glusterfs--mainline-3.0--Patch-350 which is needed in
transport/socket/src/name.c

Here is my patch, there is no doc/translator-option.txt patch here,

May be you will find other solution probably change it in file
transport/socket/src/name.c
function af_unix_server_get_local_sockaddr and
af_unix_server_get_local_sockaddr.

regards
Tomas Siegl

--- orig/xlators/protocol/client/src/client-protocol.c
+++ mod/xlators/protocol/client/src/client-protocol.c
@@ -4775,6 +4775,9 @@
 	{ "remote-host", GF_OPTION_TYPE_STR, 1, 0, 0 },
 	{ "non-blocking-io", GF_OPTION_TYPE_STR, 1, 0, 0 },

+	/* Socket */
+	{ "connect-path", GF_OPTION_TYPE_STR, 1, 0, 0 },
+
 	/* Client protocol itself */
 	{ "limits.transaction-size", GF_OPTION_TYPE_SIZET, 1, 128 *
GF_UNIT_KB, 8 * GF_UNIT_MB },
 	{ "remote-subvolume", GF_OPTION_TYPE_STR, 1, 0, 0 },


--- orig/xlators/protocol/server/src/server-protocol.c
+++ mod/xlators/protocol/server/src/server-protocol.c
@@ -6429,6 +6429,9 @@
 	{ "address-family", GF_OPTION_TYPE_STR, 1, 0, 0 },
 	{ "bind-address", GF_OPTION_TYPE_STR, 1, 0, 0 },

+	/* Socket */
+	{ "listen-path", GF_OPTION_TYPE_STR, 1, 0, 0 },	
+
 	/* Server protocol itself */
 	{ "limits.transaction-size", GF_OPTION_TYPE_SIZET, 1, 128 *
GF_UNIT_KB, 8 * GF_UNIT_MB },
 	{ "client-volume-filename", GF_OPTION_TYPE_STR, 1, 0, 0 },




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux