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@xxxxxxx> > --- > 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 > +}