Skip to content

Commit

Permalink
nfsd: remove fault injection code
Browse files Browse the repository at this point in the history
It was an interesting idea but nobody seems to be using it, it's buggy
at this point, and nfs4state.c is already complicated enough without it.
The new nfsd/clients/ code provides some of the same functionality, and
could probably do more if desired.

This feature has been deprecated since 9d60d93 ("Deprecate nfsd
fault injection").

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Sep 25, 2020
1 parent 856deb8 commit e56dc9e
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 755 deletions.
70 changes: 0 additions & 70 deletions Documentation/admin-guide/nfs/fault_injection.rst

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/admin-guide/nfs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ NFS
nfs-idmapper
pnfs-block-server
pnfs-scsi-server
fault_injection
10 changes: 0 additions & 10 deletions fs/nfsd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,3 @@ config NFSD_V4_SECURITY_LABEL

If you do not wish to enable fine-grained security labels SELinux or
Smack policies on NFSv4 files, say N.

config NFSD_FAULT_INJECTION
bool "NFS server manual fault injection"
depends on NFSD_V4 && DEBUG_KERNEL && DEBUG_FS && BROKEN
help
This option enables support for manually injecting faults
into the NFS server. This is intended to be used for
testing error recovery on the NFS client.

If unsure, say N.
1 change: 0 additions & 1 deletion fs/nfsd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ nfsd-y += trace.o
nfsd-y += nfssvc.o nfsctl.o nfsproc.o nfsfh.o vfs.o \
export.o auth.o lockd.o nfscache.o nfsxdr.o \
stats.o filecache.o
nfsd-$(CONFIG_NFSD_FAULT_INJECTION) += fault_inject.o
nfsd-$(CONFIG_NFSD_V2_ACL) += nfs2acl.o
nfsd-$(CONFIG_NFSD_V3) += nfs3proc.o nfs3xdr.o
nfsd-$(CONFIG_NFSD_V3_ACL) += nfs3acl.o
Expand Down
Loading

0 comments on commit e56dc9e

Please sign in to comment.