diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2011-11-01 13:35:21 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-11-07 21:10:47 -0500 |
commit | 65178db42a02c7984f711614546e97e9952d8e01 (patch) | |
tree | bab2974af726bb7be58e9cc7045cdf7c63b041b7 /fs/nfsd/Makefile | |
parent | 64a284d07c7d84299a90826950079a8ef11e8204 (diff) | |
download | blackbird-op-linux-65178db42a02c7984f711614546e97e9952d8e01.tar.gz blackbird-op-linux-65178db42a02c7984f711614546e97e9952d8e01.zip |
NFSD: Added fault injection
Fault injection on the NFS server makes it easier to test the client's
state manager and recovery threads. Simulating errors on the server is
easier than finding the right conditions that cause them naturally.
This patch uses debugfs to add a simple framework for fault injection to
the server. This framework is a config option, and can be enabled
through CONFIG_NFSD_FAULT_INJECTION. Assuming you have debugfs mounted
to /sys/debug, a set of files will be created in /sys/debug/nfsd/.
Writing to any of these files will cause the corresponding action and
write a log entry to dmesg.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/Makefile')
-rw-r--r-- | fs/nfsd/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/Makefile b/fs/nfsd/Makefile index 9b118ee20193..af32ef06b4fe 100644 --- a/fs/nfsd/Makefile +++ b/fs/nfsd/Makefile @@ -6,6 +6,7 @@ obj-$(CONFIG_NFSD) += nfsd.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 +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 |