[PATCH] Fail on bad verify.

From: Shawn Lewis <shawnlewis_at_google.com>
Date: Wed, 1 Aug 2007 17:07:55 -0700 (PDT)

diff --git a/verify.c b/verify.c
index 5bdfb76..fadf1c0 100644
--- a/verify.c
+++ b/verify.c
@@ -349,7 +349,7 @@ int verify_io_u(struct thread_data *td,
         struct verify_header *hdr;
         unsigned int hdr_inc, hdr_num = 0;
         void *p;
- int ret;
+ int ret = 0;
 
         if (td->o.verify == VERIFY_NULL || io_u->ddir != DDIR_READ)
                 return 0;
@@ -401,7 +401,7 @@ int verify_io_u(struct thread_data *td,
                 hdr_num++;
         }
 
- return 0;
+ return ret;
 }
 
 static void fill_meta(struct verify_header *hdr, struct thread_data *td,
Received on Thu Aug 02 2007 - 02:07:55 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 02 2007 - 02:30:01 CEST