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)
Sat, Jan 18, 10:19 PM
Unknown Object (File)
Wed, Jan 8, 10:34 AM
Unknown Object (File)
Wed, Jan 8, 9:59 AM
Unknown Object (File)
Tue, Jan 7, 8:35 AM
Unknown Object (File)
Dec 9 2024, 11:09 AM
Unknown Object (File)
Dec 9 2024, 5:40 AM
Unknown Object (File)
Dec 4 2024, 8:18 PM
Unknown Object (File)
Dec 1 2024, 6:28 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.