Flexible I/O Tester development
 help / color / mirror / Atom feed
* Verify pattern & header meta data
@ 2009-07-23 19:33 Radha Ramachandran
  2009-07-27 10:28 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Radha Ramachandran @ 2009-07-23 19:33 UTC (permalink / raw)
  To: fio, Jens Axboe

Hi,
Is there any reason why during the verify phase, when the pattern
verification is on, there is no meta verification done. I see why
doing pattern verify followed by a crc/md5/sha verification can be
redundant, but I think it is useful to have meta verify check even if
there is pattern verification just to confirm that the data was read
from the correct location as expected.
If this is reasonable I have a change to check meta data after pattern
verification where applicable:


>git diff
diff --git a/verify.c b/verify.c
index 84fc015..3c8997a 100644
--- a/verify.c
+++ b/verify.c
@@ -482,6 +482,12 @@ int verify_io_u(struct thread_data *td, struct io_u *io_u)
                                log_err("fio: verify failed at %llu/%u\n",
                                        io_u->offset + hdr_num * hdr->len,
                                        hdr->len);
+                       /*
+                        * Also verify the meta data if applicable.
+                        */
+                       if (hdr->verify_type == VERIFY_META) {
+                               ret = ret | verify_io_u_meta(hdr, td,
io_u, hdr_num);
+                       }
                        continue;
                }

Thanks
-radha


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

end of thread, other threads:[~2009-07-27 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-23 19:33 Verify pattern & header meta data Radha Ramachandran
2009-07-27 10:28 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox