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)
Mon, May 11, 9:20 AM
Unknown Object (File)
Thu, May 7, 9:05 AM
Unknown Object (File)
Thu, May 7, 5:02 AM
Unknown Object (File)
Wed, May 6, 11:30 AM
Unknown Object (File)
Tue, May 5, 9:21 PM
Unknown Object (File)
Sun, May 3, 11:22 PM
Unknown Object (File)
Thu, Apr 30, 4:52 PM
Unknown Object (File)
Thu, Apr 30, 12:31 AM
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.