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
F95985298: D32865.diff
Mon, Sep 23, 6:12 AM
F95887309: D32865.diff
Sun, Sep 22, 11:10 PM
Unknown Object (File)
Sat, Sep 21, 11:45 PM
Unknown Object (File)
Thu, Sep 19, 2:20 AM
Unknown Object (File)
Wed, Sep 18, 9:36 PM
Unknown Object (File)
Wed, Sep 18, 6:43 AM
Unknown Object (File)
Tue, Sep 17, 11:39 PM
Unknown Object (File)
Tue, Sep 17, 1:58 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.