opnsense-src/sys/fs
Rick Macklem 5299577266 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.

(cherry picked from commit a7e014eee5)
2021-11-21 07:59:49 -08:00
..
autofs Ensure that dirent's d_off field is initialized 2021-01-03 11:50:31 -05:00
cd9660 buffer pager: allow get_blksize method to return error 2021-09-24 03:26:59 +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-24 09:42:42 +02:00
devfs devfs: fix use count leak when using TIOCSCTTY 2021-04-10 05:57:55 +00:00
ext2fs vfs: remove dead fifoop VOP_KQFILTER implementations 2021-10-08 19:56:46 -05:00
fdescfs fdescfs: add an option to return underlying file vnode on lookup 2021-06-11 03:33:48 +03:00
fifofs fifo: support flock 2021-10-11 09:12:48 +00:00
fuse fusefs: don't panic if FUSE_GETATTR fails durint VOP_GETPAGES 2021-10-07 15:43:45 -06:00
mntfs mntfs: lock mntfs pseudo devfs vnode properly 2021-11-19 06:25:28 +02:00
msdosfs msdosfs_rename: remove write-only variables 2021-10-27 03:24:40 +03:00
nfs nfscl: Fix NFSv4.1/4.2 pnfs mounts using nconnect 2021-11-20 07:54:38 -08:00
nfsclient nfscl: Fix two more cases for forced dismount 2021-11-19 14:49:43 -08:00
nfsserver nfsd: Fix the NFSv4 pNFS MDS server for DS NFSERR_NOSPC 2021-11-21 07:59:49 -08:00
nullfs null_vput_pair(): release use reference on dvp earlier 2021-08-14 13:21:59 +03:00
procfs procfs_doprocfile(): simplify 2021-11-06 04:12:32 +02:00
pseudofs pseudofs: use vget_prep + vget_finish instead of vget + the interlock 2021-05-22 18:22:35 +00:00
smbfs Ensure that dirent's d_off field is initialized 2021-01-03 11:50:31 -05:00
tmpfs tmpfs: remove write-only variables 2021-10-27 03:24:40 +03:00
udf Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
unionfs unionfs: do not use bare struct componentname 2021-07-07 13:23:30 +03:00