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
F102416060: D32865.diff
Mon, Nov 11, 11:37 PM
Unknown Object (File)
Thu, Oct 17, 5:06 AM
Unknown Object (File)
Wed, Oct 16, 9:58 AM
Unknown Object (File)
Mon, Oct 14, 9:48 PM
Unknown Object (File)
Mon, Oct 14, 8:17 AM
Unknown Object (File)
Sun, Oct 13, 4:35 PM
Unknown Object (File)
Oct 12 2024, 6:27 AM
Unknown Object (File)
Oct 10 2024, 11:16 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 Skipped
Unit
Tests Skipped

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.