Add core for verify_dump option
authorSteven Lang <tirea@google.com>
Tue, 25 Oct 2011 20:41:05 +0000 (22:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Oct 2011 20:41:29 +0000 (22:41 +0200)
The verify_dump option is defined and documented, but does nothing.
This one-liner enables the option.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
verify.c

index c450e88cfc37bdf84835d7145ea75c7c9b337a2d..43dd392687ee53fac4d28161f3ee42514a6c907f 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -269,6 +269,9 @@ static void dump_verify_buffers(struct verify_header *hdr, struct vcont *vc)
        struct io_u dummy;
        void *buf;
 
+       if (!td->o.verify_dump)
+               return;
+
        /*
         * Dump the contents we just read off disk
         */