opnsense-src/sys/fs
Rick Macklem a7e014eee5 nfsd: Fix the NFSv4 pNFS MDS server for DS NFSERR_NOSPC
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 server to
tell it about the error and keeps retrying, doing repeated
LayoutGet and Write RPCs to the DS.  The Linux client is
"stuck" until disk space on the DS is free'd up.
For a mirrored server configuration, the first mirror that
ran out of space was taken offline.  This does not make
much sense, since the other mirror(s) will run out of space
soon and the fix is a manual cleanup up disk space.

This patch changes the pNFS server to not disable a mirror
for the mirrored case when this occurs.

Further work is needed, since the Linux client expects the
MDS to reply NFSERR_NOSPC to LayoutGets once the DS is out
of space.  Without this further change, the above mentioned
looping occurs.

Found during a recent IEFT NFSv4 working group testing event.

MFC after:	2 weeks
2021-11-07 11:43:03 -08:00
..
autofs vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
cd9660 buffer pager: allow get_blksize method to return error 2021-09-17 20:29:55 +03:00
cuse Fix for loading cuse.ko via rc.d . Make sure we declare the cuse(3) 2020-10-23 08:44:53 +00:00
deadfs vn_open(): If the vnode is reclaimed during open(2), do not return error. 2021-02-12 03:02:20 +02:00
devfs vfs: remove thread argument from VOP_STAT 2021-10-11 13:22:32 +00:00
ext2fs vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
fdescfs vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
fifofs fifos: delegate unhandled kqueue filters to underlying filesystem 2021-10-12 02:43:07 -05:00
fuse vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
mntfs Add a new "mntfs" pseudo file system which provides private device vnodes for 2020-03-06 18:41:37 +00:00
msdosfs msdosfs_rename: remove write-only variables 2021-10-20 21:29:49 +03:00
nfs nfscl: Fix NFSv4.1/4.2 pnfs mounts using nconnect 2021-11-04 17:06:34 -07:00
nfsclient vfs: Add "ioflag" and "cred" arguments to VOP_ALLOCATE 2021-11-06 13:26:43 -07:00
nfsserver nfsd: Fix the NFSv4 pNFS MDS server for DS NFSERR_NOSPC 2021-11-07 11:43:03 -08:00
nullfs nullfs: provide custom null_rename bypass 2021-07-27 19:58:48 +03:00
procfs procfs_doprocfile(): simplify 2021-11-04 06:13:47 +02:00
pseudofs pseudofs: use vget_prep + vget_finish instead of vget + the interlock 2021-05-19 17:58:42 +00:00
smbfs vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
tmpfs tmpfs: remove write-only variables 2021-10-20 21:29:49 +03:00
udf Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
unionfs unionfs: Improve vnode validation 2021-11-06 07:08:34 -07:00