kernel - Force NFSv3 for diskless nfs mount
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 19 Oct 2010 19:31:29 +0000 (12:31 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Oct 2010 16:31:50 +0000 (09:31 -0700)
commit49adb6c748d3c692fedafe145ffec6413f741019
tree61a9ef3e65cdb14ac70c923ab4d4fcc0055167f7
parentc42f98cfe199322697feecdf7b0f146fb3209a08
kernel - Force NFSv3 for diskless nfs mount

* Ignore any file handles passed from bootp.  These are NFSv2 handles
  and NFSv2 just doesn't have the directory support needed if the
  server is running a filesystem with 64-bit directory cookies (as HAMMER
  does).

  This will force the kernel's diskless nfs mount to re-authorize and
  acquire a NFSv3 handle for the root mount.

* Undo a bit of a previous commit where I tried to enable readdirplus for
  NFSv2 to workaround NFSv2 directory cookie issues.  It just doesn't work.
  readdirplus is again force-disabled for NFSv2 mounts.
sys/vfs/nfs/nfs_vfsops.c
sys/vfs/nfs/nfs_vnops.c