Page MenuHomeFreeBSD

add ioflag and cred arguments to VOP_ALLOCATE() for the nfs server
ClosedPublic

Authored by rmacklem on Nov 6 2021, 12:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 15, 1:41 AM
Unknown Object (File)
Wed, Jan 14, 3:06 PM
Unknown Object (File)
Wed, Jan 14, 2:27 PM
Unknown Object (File)
Tue, Jan 13, 6:04 AM
Unknown Object (File)
Sat, Dec 27, 8:36 PM
Unknown Object (File)
Nov 25 2025, 5:34 PM
Unknown Object (File)
Nov 8 2025, 2:28 PM
Unknown Object (File)
Nov 4 2025, 6:51 PM
Subscribers

Details

Summary

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.

Test Plan

Tested with an NFSv4.2 client for a non-root user.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 6 2021, 12:30 AM

I forgot to mention the corresponding VOP_ALLOCATE.9 has to be updated as well.