From: Omar Sandoval <osandov@osandov.com>
To: Ming Lei <ming.lei@redhat.com>
Cc: Omar Sandoval <osandov@fb.com>,
linux-block@vger.kernel.org,
"Martin K . Petersen" <martin.petersen@oracle.com>
Subject: Re: [PATCH] block/028: check if T10 verification fails
Date: Mon, 6 May 2019 13:02:13 -0700 [thread overview]
Message-ID: <20190506200213.GD20450@vader> (raw)
In-Reply-To: <20190426023937.19584-1-ming.lei@redhat.com>
On Fri, Apr 26, 2019 at 10:39:37AM +0800, Ming Lei wrote:
> 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>
> ---
> tests/block/028 | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/block/028 b/tests/block/028
> index 7bee691c0515..a0ab9ff208db 100755
> --- a/tests/block/028
> +++ b/tests/block/028
> @@ -38,6 +38,14 @@ test() {
> test_pi "$dix" "$dif"
> echo "Test(dix:$dix dif:$dif) complete"
> done
> + if dmesg | grep -q "guard tag error at sector"; then
> + echo "Fail"
> + break
> + fi
> + if dmesg | grep -q "ref tag error at location"; then
> + echo "Fail"
> + break
> + fi
This will also catch messages that didn't occur during the test run. Not
a huge deal, but I reworked it to use DMESG_FILTER instead. Thanks!
prev parent reply other threads:[~2019-05-06 20:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-26 2:39 [PATCH] block/028: check if T10 verification fails Ming Lei
2019-04-26 14:57 ` Christoph Hellwig
2019-04-26 18:24 ` Chaitanya Kulkarni
2019-04-26 23:13 ` Ming Lei
2019-04-26 22:16 ` Ming Lei
2019-04-27 1:24 ` Darrick J. Wong
2019-04-27 3:29 ` Ming Lei
2019-05-06 20:02 ` Omar Sandoval [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190506200213.GD20450@vader \
--to=osandov@osandov.com \
--cc=linux-block@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=ming.lei@redhat.com \
--cc=osandov@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox