NFS: Temporary fix for NFSv4 mounts over RPC-RDMA
The NFSv4 mount insists on an IPv4 server address. This prevents RDMA
mounts from succeeding, so allow the (temporary) RDMA nfsmount family.
Signed-off-by: Tom Talpey <[email protected]>
---
super.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.22/fs/nfs/super.c
===================================================================
--- linux-2.6.22.orig/fs/nfs/super.c
+++ linux-2.6.22/fs/nfs/super.c
@@ -826,7 +826,7 @@ static int nfs4_get_sb(struct file_syste
if (copy_from_user(&addr, data->host_addr, sizeof(addr)))
return -EFAULT;
- if (addr.sin_family != AF_INET ||
+ if ( (addr.sin_family != AF_INET && addr.sin_family != 0xff) ||
addr.sin_addr.s_addr == INADDR_ANY
) {
dprintk("%s: mount program didn't pass remote IP address!\n",
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs