path: root/gluster/gfapi
diff options
authorPrashanth Pai <>2017-12-22 17:14:10 +0530
committerPrashanth Pai <>2017-12-22 18:10:54 +0530
commitb125ff3e83283f231295873118ed7a170f4284d1 (patch)
treee5a901c86044cb6ab693f7f94c735588fab928dd /gluster/gfapi
parent06bd1688f0df27854b1d1df3e30d19b22f0d6a53 (diff)
Expose mounting over unix socket
Change-Id: I17078b6d20372c3935f7bcd8c82f55f96096dd87 Signed-off-by: Prashanth Pai <>
Diffstat (limited to 'gluster/gfapi')
1 files changed, 3 insertions, 2 deletions
diff --git a/gluster/gfapi/ b/gluster/gfapi/
index 89d8388..d48aa06 100644
--- a/gluster/gfapi/
+++ b/gluster/gfapi/
@@ -629,7 +629,8 @@ class Volume(object):
Create a Volume object instance.
- :param host: Host with glusterd management daemon running.
+ :param host: Host with glusterd management daemon running OR
+ : path to socket file which glusterd is listening on.
:param volname: Name of GlusterFS volume to be mounted and used.
:param proto: Transport protocol to be used to connect to management
daemon. Permitted values are "tcp" and "rdma".
@@ -658,7 +659,7 @@ class Volume(object):
if None in (volname, host):
# TODO: Validate host based on regex for IP/FQDN.
raise LibgfapiException("Host and Volume name should not be None.")
- if proto not in ('tcp', 'rdma'):
+ if proto not in ('tcp', 'rdma', 'unix'):
raise LibgfapiException("Invalid protocol specified.")
if not isinstance(port, (int, long)):
raise LibgfapiException("Invalid port specified.")