]> www.infradead.org Git - users/hch/blktests.git/commit
block/028: check if T10 verification fails
authorMing Lei <ming.lei@redhat.com>
Fri, 26 Apr 2019 02:39:37 +0000 (10:39 +0800)
committerOmar Sandoval <osandov@fb.com>
Mon, 6 May 2019 20:00:28 +0000 (13:00 -0700)
commit09c0fe1bf86e7a3a23f6e26621ebbe964e7a2c58
treee326476ef913d9188bb0fe23f8c859c28374c9a5
parent0ee7ebae6324a173fc3ac0d994e810bf4817ee70
block/028: check if T10 verification fails

When T10 verification fails, the error code of BLK_STS_PROTECTION
may not be propagated to user space, see mpage_end_io().

So seems the only reliable way for detecting the failure is to
check dmesg.

Cc: Martin K . Petersen <martin.petersen@oracle.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
[Omar: use DMESG_FILTER]
Signed-off-by: Omar Sandoval <osandov@fb.com>
check
tests/block/028