]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Add support for a NFSv4 AppendWrite RPC
authorRick Macklem <rmacklem@FreeBSD.org>
Tue, 5 Apr 2022 15:11:37 +0000 (08:11 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Tue, 5 Apr 2022 15:11:37 +0000 (08:11 -0700)
commit330aa8acdec76d00d9e0ca526d421fe25ccf90cf
tree51f9d240d844c833bbbe21fefd0ab2756997bb7d
parent79c4c4be9618470711480f46ef2cd3a15c00cdd2
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.
sys/fs/nfs/nfs_commonport.c
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsport.h
sys/fs/nfs/nfsproto.h