atom feed3 messages in org.freebsd.freebsd-archCFR: NFS root options fixup
FromSent OnAttachments
Sam LefflerDec 4, 2006 10:23 am 
John BaldwinDec 4, 2006 1:10 pm 
Sam LefflerDec 4, 2006 1:51 pm 
Subject:CFR: NFS root options fixup
From:Sam Leffler (sa@errno.com)
Date:Dec 4, 2006 1:51:44 pm
List:org.freebsd.freebsd-arch

John Baldwin wrote:

On Monday 04 December 2006 13:23, Sam Leffler wrote:

There's a small patch at:

http://www.freebsd.org/~sam/nfsopts.patch

to unify parsing of nfs mount options supplied when booting over the net. It also extends the supported options so you can do things like specify nolockd, tcp, udp, and nfsv2, nfsv3. Some of this appears to be superfluous given the work that rc.initdiskless does but it's there.

The one change I'm uncertain of is the bounds checking I apply to rsize/wsize.

Sam

Do you need to set NFSMNT_RSIZE and NFSMNT_WSIZE in nd->flags in nfs_parse_options() if you get a "rsize" or "wsize" option? For the bootp case the flags are always set, but was worried about the non-bootp case.

Probably. I have not had time to test the pxe booting case. I've only tested booting with bootp/dhcp.

Sam