HomeFreeBSD

nfsclient: fix panic in cache_enter_time()

Description

nfsclient: fix panic in cache_enter_time()

Juraj Lutter (otis@) reported a panic "dvp != vp not true" in
cache_enter_time() called from the NFS client's nfsrpc_readdirplus()
function.
This is specific to an NFSv3 mount with the "rdirplus" mount
option. Unlike NFSv4, NFSv3 replies to ReaddirPlus
includes entries for the current directory.

This trivial patch avoids doing a cache_enter_time()
call for the current directory to avoid the panic.

(cherry picked from commit 3fe2c68ba20fb3365ef91e0b85f88237b5369f38)

Details

Provenance
rmacklemAuthored on Feb 28 2021, 1:54 AM
Parents
rG2428cc639d6f: fhlink(2): the syscalls do not take flag
Branches
Unknown
Tags
Unknown