diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-11-29 11:40:44 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-12-03 09:59:01 -0500 |
commit | 184c18471f7d0963ad5752692c4b441a546d88f1 (patch) | |
tree | 92dc8d2d5d7104888055741b6c2c6fca67795b05 /fs/nfsd/state.h | |
parent | 8ce54e0d82730ece61737c9fd7b61b28ab8c3390 (diff) | |
download | kernel_goldelico_gta04-184c18471f7d0963ad5752692c4b441a546d88f1.zip kernel_goldelico_gta04-184c18471f7d0963ad5752692c4b441a546d88f1.tar.gz kernel_goldelico_gta04-184c18471f7d0963ad5752692c4b441a546d88f1.tar.bz2 |
NFSD: Reading a fault injection file prints a state count
I also log basic information that I can figure out about the type of
state (such as number of locks for each client IP address). This can be
useful for checking that state was actually dropped and later for
checking if the client was able to recover.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 423ac64..4017f35 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -508,6 +508,11 @@ u64 nfsd_forget_client_locks(struct nfs4_client*, u64); u64 nfsd_forget_client_openowners(struct nfs4_client *, u64); u64 nfsd_forget_client_delegations(struct nfs4_client *, u64); u64 nfsd_recall_client_delegations(struct nfs4_client *, u64); + +u64 nfsd_print_client(struct nfs4_client *, u64); +u64 nfsd_print_client_locks(struct nfs4_client *, u64); +u64 nfsd_print_client_openowners(struct nfs4_client *, u64); +u64 nfsd_print_client_delegations(struct nfs4_client *, u64); #else /* CONFIG_NFSD_FAULT_INJECTION */ static inline int nfsd_fault_inject_init(void) { return 0; } static inline void nfsd_fault_inject_cleanup(void) {} |