* [PATCH] nfsroot port= parameter fix
@ 2003-02-03 10:03 Eric Lammerts
0 siblings, 0 replies; only message in thread
From: Eric Lammerts @ 2003-02-03 10:03 UTC (permalink / raw)
To: trond.myklebust; +Cc: linux-kernel
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
--- linux-2.4.21-pre4/fs/nfs/nfsroot.c.orig Mon Feb 3 10:11:10 2003
+++ linux-2.4.21-pre4/fs/nfs/nfsroot.c Mon Feb 3 10:28:35 2003
@@ -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 "
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-03 9:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 10:03 [PATCH] nfsroot port= parameter fix Eric Lammerts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®