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)
Tue, Jun 9, 7:19 PM
Unknown Object (File)
May 11 2026, 9:20 AM
Unknown Object (File)
May 7 2026, 9:05 AM
Unknown Object (File)
May 7 2026, 5:02 AM
Unknown Object (File)
May 6 2026, 11:30 AM
Unknown Object (File)
May 5 2026, 9:21 PM
Unknown Object (File)
May 3 2026, 11:22 PM
Unknown Object (File)
Apr 30 2026, 4:52 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.