diff options
| -rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index c36ad6ff9ab..3d8ae0b39c6 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -124,6 +124,10 @@ start_glusterfs ()          cmd_line=$(echo "$cmd_line --volume-name=$volume_name");      fi +    # for rdma volume, we have to fetch volfile with '.rdma' added +    # to volume name, so that it fetches the right client vol file +    volume_id_rdma=""; +      if [ -z "$volfile_loc" ]; then          if  [ -n "$server_ip" ]; then              if [ -n "$server_port" ]; then @@ -131,8 +135,14 @@ start_glusterfs ()              fi  	    if [ -n "$transport" ]; then                  cmd_line=$(echo "$cmd_line --volfile-server-transport=$transport"); +                if [ "$transport" = "rdma" ]; then +                    volume_id_rdma=".rdma"; +                fi              fi              if [ -n "$volume_id" ]; then +                if [ -n "$volume_id_rdma" ]; then +                    volume_id="$volume_id$volume_id_rdma"; +                fi                  cmd_line=$(echo "$cmd_line --volfile-id=$volume_id");              fi  | 
