Skip to contentSkip to conversation

Log bad veify header location

PATCH Radha Ramachandran 2 participants 2 messages Nov 12, 2009

lore
Share & tools
lore
#0 lore raw

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

verify.c +1 -1
index 84e888b..52e1289 100644
@@ -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;
                }
#1 lore raw
Quoted 3 lines · Radha Ramachandran

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

Committed, thanks.

Signature · 1 line
Jens Axboe