linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nfsd: return 0 on reads of fault injection files
@ 2012-05-10 19:31 Weston Andros Adamson
  2012-05-16 21:16 ` J. Bruce Fields
  0 siblings, 1 reply; 6+ messages in thread
From: Weston Andros Adamson @ 2012-05-10 19:31 UTC (permalink / raw)
  To: bfields; +Cc: bjschuma, linux-nfs, Weston Andros Adamson

debugfs read operations were returning the contents of an uninitialized u64.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
---
I found this while working on (forthcoming) fault injection tests for 
CB_PATH_DOWN.

 fs/nfsd/fault_inject.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c
index 46b7696..ab81144 100644
--- a/fs/nfsd/fault_inject.c
+++ b/fs/nfsd/fault_inject.c
@@ -62,6 +62,7 @@ static int nfsd_inject_set(void *op_ptr, u64 val)
 
 static int nfsd_inject_get(void *data, u64 *val)
 {
+	*val = 0;
 	return 0;
 }
 
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-17 11:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 19:31 [PATCH] nfsd: return 0 on reads of fault injection files Weston Andros Adamson
2012-05-16 21:16 ` J. Bruce Fields
2012-05-16 21:50   ` Adamson, Dros
2012-05-16 21:58     ` J. Bruce Fields
2012-05-16 22:10       ` Adamson, Dros
2012-05-17 11:33         ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).