From: Omar Sandoval <osandov@osandov.com>
To: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: linux-block@vger.kernel.org, Omar Sandoval <osandov@fb.com>,
Masato Suzuki <masato.suzuki@wdc.com>,
Damien Le Moal <Damien.LeMoal@wdc.com>,
Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>
Subject: Re: [PATCH blktests v2 2/2] zbd/007: Add zone mapping test for logical devices
Date: Wed, 5 Jun 2019 14:53:31 -0700 [thread overview]
Message-ID: <20190605215331.GB21734@vader> (raw)
In-Reply-To: <20190531015913.5560-3-shinichiro.kawasaki@wdc.com>
On Fri, May 31, 2019 at 10:59:13AM +0900, Shin'ichiro Kawasaki wrote:
> Add the test case to check zones sector mapping of logical devices. This
> test case requires that such a logical device be specified in TEST_DEVS
> in config. The test is skipped for devices that are identified as not
> logically created.
>
> To test that the zone mapping is correct, select a few sequential write
> required zones of the logical device and move the write pointers of
> these zones through the container device of the logical device, using
> the physical sector mapping of the zones. The write pointers position of
> the selected zones is then checked through a zone report of the logical
> device using the logical sector mapping of the zones. The test reports a
> success if the position of the zone write pointers relative to the zone
> start sector must be identical for both the logical and physical
> locations of the zones.
>
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
> ---
> tests/zbd/007 | 110 ++++++++++++++++++++++++++++++++++++++++++++++
> tests/zbd/007.out | 2 +
> 2 files changed, 112 insertions(+)
> create mode 100755 tests/zbd/007
> create mode 100644 tests/zbd/007.out
>
> diff --git a/tests/zbd/007 b/tests/zbd/007
> new file mode 100755
> index 0000000..b4dcbd8
> --- /dev/null
> +++ b/tests/zbd/007
> @@ -0,0 +1,110 @@
> +#!/bin/bash
> +# SPDX-License-Identifier: GPL-3.0+
> +# Copyright (C) 2019 Western Digital Corporation or its affiliates.
> +#
> +# Test zones are mapped correctly between a logical device and its container
> +# device. Move write pointers of sequential write required zones on the
> +# container devices, and confirm same write pointer positions of zones on the
> +# logical devices.
> +
> +. tests/zbd/rc
> +
> +DESCRIPTION="zone mapping between logical and container devices"
> +CAN_BE_ZONED=1
> +QUICK=1
> +
> +requires() {
> + _have_program dmsetup
> +}
Looks like this test doesn't have a fallback device, so I can't run it
here. Is that intentional, or was it just overlooked?
> +device_requires() {
> + _test_dev_is_logical
> +}
next prev parent reply other threads:[~2019-06-05 21:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 1:59 [PATCH blktests v2 0/2] Test zone mapping of logical devices Shin'ichiro Kawasaki
2019-05-31 1:59 ` [PATCH blktests v2 1/2] zbd/rc: Introduce helper functions for zone mapping test Shin'ichiro Kawasaki
2019-06-04 22:12 ` Chaitanya Kulkarni
2019-06-06 7:52 ` Shinichiro Kawasaki
2019-06-05 21:52 ` Omar Sandoval
2019-06-06 8:07 ` Shinichiro Kawasaki
2019-05-31 1:59 ` [PATCH blktests v2 2/2] zbd/007: Add zone mapping test for logical devices Shin'ichiro Kawasaki
2019-06-04 22:13 ` Chaitanya Kulkarni
2019-06-05 21:53 ` Omar Sandoval [this message]
2019-06-07 5:04 ` Shinichiro Kawasaki
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=20190605215331.GB21734@vader \
--to=osandov@osandov.com \
--cc=Chaitanya.Kulkarni@wdc.com \
--cc=Damien.LeMoal@wdc.com \
--cc=linux-block@vger.kernel.org \
--cc=masato.suzuki@wdc.com \
--cc=osandov@fb.com \
--cc=shinichiro.kawasaki@wdc.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