Log bad veify header location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
                }
--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux