From 16758b598075628288c2fbefa822f81f282577b5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 16 Dec 2015 08:59:38 -0700 Subject: [PATCH] verify: dump failed header, if verification fails And verify_dump=1 is enabled. Signed-off-by: Jens Axboe --- verify.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/verify.c b/verify.c index 268c0603..5d491d76 100644 --- a/verify.c +++ b/verify.c @@ -780,6 +780,11 @@ err: log_err(" at file %s offset %llu, length %u\n", io_u->file->file_name, io_u->offset + hdr_num * hdr_len, hdr_len); + + if (td->o.verify_dump) + dump_buf(p, hdr_len, io_u->offset + hdr_num * hdr_len, + "hdr_fail", io_u->file); + return EILSEQ; } -- 2.25.1