Add a test case to zbd group to check that zones sector mapping correctness for zoned block devices that are not an entire full device (null_block device or physical device). These logical devices are for now partition devices or device-mapper devices (dm-linear or dm-flakey). It catches regressions of complex zone remapping problem fixed by commit 9864cd5dc54c "dm: fix report zone remapping to account for partition offset". Changes from v2: * Reflected review comments on the list * Modified _get_dev_path_by_id() to get device paths of partition devices Changes from v1: * Reflected Chaitanya's review comments on the list * Separated helper functions in zbd/rc into a preparation patch Shin'ichiro Kawasaki (2): zbd/rc: Introduce helper functions for zone mapping test zbd/007: Add zone mapping test for logical devices tests/zbd/007 | 110 ++++++++++++++++++++++++++++++++++++ tests/zbd/007.out | 2 + tests/zbd/rc | 140 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 252 insertions(+) create mode 100755 tests/zbd/007 create mode 100644 tests/zbd/007.out -- 2.21.0