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>
Tue, 19 Oct 2010 19:31:29 +0000 (12:31 -0700)
commit226341c188c0178e63bdba02936996e0370fa1c8
tree291f1fb899c5a9f7cd695a1b8eebd905d9ab7a0f
parent43ca7c33d5d9709cb830f16440724207af527cae
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