From 5f88d4c1b036228ca4036e854d533f0b2fc3adc1 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Fri, 23 Nov 2012 14:26:10 +0530 Subject: libgfapi: "tcp" is documented as the valid transport type instead of "socket". Change-Id: I066e9be7755a535f385c102cdd1822adeda7f319 BUG: 860203 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/4226 Reviewed-by: Jeff Darcy Tested-by: Gluster Build System --- api/examples/gfapi.py | 2 +- api/examples/glfsxmp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'api/examples') diff --git a/api/examples/gfapi.py b/api/examples/gfapi.py index e71a9866e..8fc3bfa4c 100644 --- a/api/examples/gfapi.py +++ b/api/examples/gfapi.py @@ -10,7 +10,7 @@ api = ctypes.CDLL("api/libgfapi.so",ctypes.RTLD_GLOBAL) fs = api.glfs_new(sys.argv[1]) api.glfs_set_logging(fs,"/dev/stderr",7) -api.glfs_set_volfile_server(fs,"socket","localhost",24007) +api.glfs_set_volfile_server(fs,"tcp","localhost",24007) api.glfs_init(fs) print "Initialized volume" diff --git a/api/examples/glfsxmp.c b/api/examples/glfsxmp.c index c72c828f5..b359cc744 100644 --- a/api/examples/glfsxmp.c +++ b/api/examples/glfsxmp.c @@ -81,7 +81,7 @@ main (int argc, char *argv[]) // ret = glfs_set_volfile (fs, "/tmp/posix.vol"); - ret = glfs_set_volfile_server (fs, "socket", "localhost", 24007); + ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007); // ret = glfs_set_volfile_server (fs, "unix", "/tmp/gluster.sock", 0); @@ -102,7 +102,7 @@ main (int argc, char *argv[]) // ret = glfs_set_volfile (fs2, "/tmp/posix.vol"); - ret = glfs_set_volfile_server (fs2, "socket", "localhost", 24007); + ret = glfs_set_volfile_server (fs2, "tcp", "localhost", 24007); ret = glfs_set_logging (fs2, "/dev/stderr", 7); -- cgit