nfsroot port= parameter fix
PATCH 1/1 nfsroot port= parameter fix
Hi,
When I specify the NFS port for nfsroot (e.g., nfsroot=<dir>,port=2049), the kernel uses the wrong port. In my case it tries to use 264 (0x108) instead of 2049 (0x801).
This patch adds the missing htons().
Eric
fs/nfs/nfsroot.c renamed from fs/nfs/nfsroot.c.orig +2 -1
@@ -384,10 +384,11 @@ "number from server, using default\n"); port = nfsd_port; } - nfs_port =htons (port); + nfs_port = port;dprintk ("Root-NFS: Portmapper on server returned %d " "as nfsd port\n" , port); } + nfs_port =htons (nfs_port);if ((port =root_nfs_getport (NFS_MNT_PROGRAM , mountd_ver, proto)) <0 ) { printk(KERN_ERR "Root-NFS: Unable to get mountd port "