Date: Wed, 1 Sep 2010 23:51:07 +0000 (UTC) From: Rick Macklem <rmacklem@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/nfsclient nfs_diskless.c Message-ID: <201009012351.o81NpHQY063724@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rmacklem 2010-09-01 23:51:07 UTC FreeBSD src repository Modified files: sys/nfsclient nfs_diskless.c Log: SVN rev 212123 on 2010-09-01 23:51:07Z by rmacklem Modify nfs_diskless.c to recognize the environment variable boot.nfsroot.nfshandlelen and set the diskless root fs to use NFSv3 and this file handle length when it is set. If this environment variable is not set, the diskless root fs will use NFSv2 and the same defaults as before. This fixes the problem where the diskless nfs root fs had to be on a FreeBSD server for NFSv3 to work, because it did not know the correct file handle length and assumed the size used by FreeBSD. Until pxeboot and loader are replaced by ones built from commits coming soon, boot.nfsroot.nfshandlelen will not be set by them and the diskless root fs will use NFSv2 unless the /etc/fstab entry has the "nfsv3" option specified. Tested by: danny at cs.huji.ac.il MFC after: 2 weeks Revision Changes Path 1.31 +120 -45 src/sys/nfsclient/nfs_diskless.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009012351.o81NpHQY063724>