mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
![Bryan Schumaker](/assets/img/avatar_default.png)
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>
14 lines
485 B
Makefile
14 lines
485 B
Makefile
#
|
|
# Makefile for the Linux nfs server
|
|
#
|
|
|
|
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
|
|
nfsd-$(CONFIG_NFSD_V4) += nfs4proc.o nfs4xdr.o nfs4state.o nfs4idmap.o \
|
|
nfs4acl.o nfs4callback.o nfs4recover.o
|