HomeFreeBSD

vfs: Add "ioflag" and "cred" arguments to VOP_ALLOCATE

Description

vfs: Add "ioflag" and "cred" arguments to VOP_ALLOCATE

When the NFSv4.2 server does a VOP_ALLOCATE(), it needs
the operation to be done for the RPC's credential and not
td_ucred. It also needs the writing to be done synchronously.

This patch adds "ioflag" and "cred" arguments to VOP_ALLOCATE()
and modifies vop_stdallocate() to use these arguments.

The VOP_ALLOCATE.9 man page will be patched separately.

Reviewed by: khng, kib
Differential Revision: https://reviews.freebsd.org/D32865

Details

Provenance
rmacklemAuthored on Nov 6 2021, 8:26 PM
Reviewer
khng
Differential Revision
D32865: add ioflag and cred arguments to VOP_ALLOCATE() for the nfs server
Parents
rGcc0b35259aed: rk805: add system poweroff support
Branches
Unknown
Tags
Unknown