Flexible I/O Tester development
 help / color / mirror / Atom feed
* Log bad veify header location
@ 2009-11-12  0:48 Radha Ramachandran
  2009-11-12  8:05 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Radha Ramachandran @ 2009-11-12  0:48 UTC (permalink / raw)
  To: Jens Axboe, fio

Hi,
Can we please add the bad verify header location when the header
MAGIC_NUMBER does not match.
Thanks
-radha

diff --git a/verify.c b/verify.c
index 84e888b..52e1289 100644
--- a/verify.c
+++ b/verify.c
@@ -478,7 +478,8 @@ int verify_io_u(struct thread_data *td, struct io_u *io_u)
                hdr = p;

                if (hdr->fio_magic != FIO_HDR_MAGIC) {
-                       log_err("Bad verify header %x\n", hdr->fio_magic);
+                       log_err("Bad verify header %x at %llu\n",
hdr->fio_magic,
+                               io_u->offset + hdr_num * hdr->len);
                        return EILSEQ;
                }

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

* Re: Log bad veify header location
  2009-11-12  0:48 Log bad veify header location Radha Ramachandran
@ 2009-11-12  8:05 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2009-11-12  8:05 UTC (permalink / raw)
  To: Radha Ramachandran; +Cc: fio

On Wed, Nov 11 2009, Radha Ramachandran wrote:
> Hi,
> Can we please add the bad verify header location when the header
> MAGIC_NUMBER does not match.

Committed, thanks.

-- 
Jens Axboe


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

end of thread, other threads:[~2009-11-12  8:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12  0:48 Log bad veify header location Radha Ramachandran
2009-11-12  8:05 ` Jens Axboe

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