HomeFreeBSD

nfscl: Add support for a NFSv4 AppendWrite RPC

Description

nfscl: Add support for a NFSv4 AppendWrite RPC

For IO_APPEND VOP_WRITE()s, the code first does a
Getattr RPC to acquire the file's size, before it
can do the Write RPC.

Although NFS does not have an append write operation,
an NFSv4 compound can use a Verify operation to check
that the client's notion of the file's size is
correct before doing the Write operation.

This patch prepares the NFSv4 client for such an
RPC, which will be added in a future commit.

This patch does not cause any semantics change.

(cherry picked from commit 330aa8acdec76d00d9e0ca526d421fe25ccf90cf)

Details

Provenance
rmacklemAuthored on Apr 5 2022, 3:11 PM
Parents
rG40bbef56c944: Merge llvm-project release/14.x llvmorg-14.0.4-0-g29f1039a7285
Branches
Unknown
Tags
Unknown