]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Add a LayoutError RPC for NFSv4.2 pNFS mounts
authorRick Macklem <rmacklem@FreeBSD.org>
Thu, 11 Nov 2021 23:43:58 +0000 (15:43 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Thu, 25 Nov 2021 00:32:09 +0000 (16:32 -0800)
commit6e8e261f0d4e8b71e2a7ab74a05e0ed7cae5704a
treee001daf08c7c69bf408ca060bbe72dbde8336ad5
parent354988ca3f9db745ce0734ef1bda2daba584f723
nfscl: Add a LayoutError RPC for NFSv4.2 pNFS mounts

If a pNFS server's DS runs out of disk space, it replies
NFSERR_NOSPC to the client doing writing.  For the Linux
client, it then sends a LayoutError RPC to the MDS server to
tell it about the error.  This patch adds the same to the
FreeBSD NFSv4.2 pNFS client, to maintain Linux compatible
behaviour, particlularily for non-FreeBSD pNFS servers.

(cherry picked from commit 44744f75386e2102584acbca24fbe67de16051ca)
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsport.h
sys/fs/nfs/nfsproto.h
sys/fs/nfsclient/nfs_clrpcops.c