summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
index fe7cfc1d1..6320bf17e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -2818,19 +2818,13 @@ get_client_filepath (char *filepath, glusterd_volinfo_t *volinfo, gf_transport_t
GLUSTERD_GET_VOLUME_DIR (path, volinfo, priv);
- switch (type) {
- case GF_TRANSPORT_TCP:
- snprintf (filepath, PATH_MAX, "%s/%s-fuse.vol",
- path, volinfo->volname);
- break;
- case GF_TRANSPORT_RDMA:
+ if ((volinfo->transport_type == GF_TRANSPORT_BOTH_TCP_RDMA) &&
+ (type == GF_TRANSPORT_RDMA))
snprintf (filepath, PATH_MAX, "%s/%s.rdma-fuse.vol",
path, volinfo->volname);
- break;
- default:
- GF_ASSERT (0);
- break;
- }
+ else
+ snprintf (filepath, PATH_MAX, "%s/%s-fuse.vol",
+ path, volinfo->volname);
}
static void