Blame SOURCES/nfs-utils-1.3.0-gssd-rdma-to-tcp.patch

fc3648
diff -up nfs-utils-1.3.0/utils/gssd/gssd.c.orig nfs-utils-1.3.0/utils/gssd/gssd.c
fc3648
--- nfs-utils-1.3.0/utils/gssd/gssd.c.orig	2017-02-28 14:24:20.296676493 -0500
fc3648
+++ nfs-utils-1.3.0/utils/gssd/gssd.c	2017-02-28 14:45:36.140482510 -0500
fc3648
@@ -305,6 +305,22 @@ gssd_read_service_info(int dirfd, struct
fc3648
 		goto fail;
fc3648
 	}
fc3648
 
fc3648
+	/*
fc3648
+	 * The user space RPC library has no support for
fc3648
+	 * RPC-over-RDMA at this time, so change 'rdma'
fc3648
+	 * to 'tcp', and '20049' to '2049'.
fc3648
+	 */
fc3648
+	if (strcmp(protoname, "rdma") == 0) {
fc3648
+		free(protoname);
fc3648
+		protoname = strdup("tcp");
fc3648
+		if (!protoname)
fc3648
+			goto fail;
fc3648
+		free(port);
fc3648
+		port = strdup("2049");
fc3648
+		if (!port)
fc3648
+			goto fail;
fc3648
+	}
fc3648
+
fc3648
 	if (!gssd_addrstr_to_sockaddr((struct sockaddr *)&clp->addr,
fc3648
 				 address, port ? port : ""))
fc3648
 		goto fail;