HomeFreeBSD

nfs_clstate.c: Fix CB_RECALL handling for NFSv4.1/4.2

Description

nfs_clstate.c: Fix CB_RECALL handling for NFSv4.1/4.2

Recent testing with a modified NFSv4.1/4.2 client that
sometimes ignored CB_RECALL callbacks, identified a few
problems when handling the unusual case of CB_RECALL not
be performed by the client.

  • The csa_cachethis argument to CB_SEQUENCE was being ignored.
  • The CB_SEQUENCE operation would reply NFSERR_DELAY after the first CB_RECALL attempt, making retries ineffective.
  • The code could return NFSERR_RESOURCE, which is a NFSv4.0 specific error code.

This patch fixes the above three problems.

The patch only affects the NFSv4.1/4.2 client when
delegations are being issued and the client somehow
fails to handle a CB_RECALL callback of a delegation,
which is an unusual case.

MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on Jun 27 2026, 11:35 PM
Parents
rG4b26ea547139: openresolv: Trim leading dot from domain name
Branches
Unknown
Tags
Unknown