From 7d9fb455aadc0c0363489591775496f27f4a560a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 11 Jan 2011 22:16:49 +0100 Subject: When verify fails, dump the good/bad blocks to files This makes it easy to compare afterwards to see what kind of corruption was experienced. Signed-off-by: Jens Axboe --- lib/rand.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rand.h') diff --git a/lib/rand.h b/lib/rand.h index 573116cb..02e68585 100644 --- a/lib/rand.h +++ b/lib/rand.h @@ -19,6 +19,7 @@ static inline unsigned int __rand(struct frand_state *state) } extern void init_rand(struct frand_state *); -extern void fill_random_buf(void *buf, unsigned int len); +extern void __fill_random_buf(void *buf, unsigned int len, unsigned long seed); +extern unsigned long fill_random_buf(void *buf, unsigned int len); #endif -- cgit v1.2.3