HomeFreeBSD

nfscl: Add a check for VREG for delegations

Description

nfscl: Add a check for VREG for delegations

Since delegations are only issued for regular files, check
v_type to see if the query is for a regular file. This is
a simple optimization for the non-VREG case.
While here, fix a couple of global variable declarations.

This patch should only affect the NFSv4.1/4.2 behaviour
when delegations are enabled, which is not the default.

MFC after: 1 month

Details

Provenance
rmacklemAuthored on Jun 12 2024, 11:17 PM
Parents
rGec1f285f2e63: nfscl: Add support for the NFSv4.1/4.2 WANT_xxx flags
Branches
Unknown
Tags
Unknown