summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2010-09-01 23:51:07 +0000
committerrmacklem <rmacklem@FreeBSD.org>2010-09-01 23:51:07 +0000
commit30b194f17b94c8deebc3f66b9d22a28e3a6f6b1a (patch)
tree68fc9d05a48263a37c5d9976d25058b8a6559bc7 /sys/dev
parentbb06251a3b690fcc700e857bf3f756c4d0e07330 (diff)
downloadFreeBSD-src-30b194f17b94c8deebc3f66b9d22a28e3a6f6b1a.zip
FreeBSD-src-30b194f17b94c8deebc3f66b9d22a28e3a6f6b1a.tar.gz
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
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud