]> 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, 11 Nov 2021 23:43:58 +0000 (15:43 -0800)
commit44744f75386e2102584acbca24fbe67de16051ca
treea8990c7323c20faec7a1f65696bfde4bf49541ad
parent522a2aa7613aa43f4d3bb5bdd1d87f966304be34
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.

MFC after: 2 weeks
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsport.h
sys/fs/nfs/nfsproto.h
sys/fs/nfsclient/nfs_clrpcops.c