@@ -15,6 +15,9 @@ _dmerror_setup()
DMLINEAR_TABLE="0 $blk_dev_size linear $dm_backing_dev 0"
DMERROR_TABLE="0 $blk_dev_size error $dm_backing_dev 0"
+
+ # dm-error cannot handle zone information
+ _require_non_zoned_device "${dm_backing_dev}"
}
_dmerror_init()
@@ -16,6 +16,9 @@ _dmhugedisk_init()
local dm_backing_dev=$SCRATCH_DEV
local chunk_size="$2"
+ # We cannot ensure sequential writes on the backing device
+ _require_non_zoned_device $dm_backing_dev
+
if [ -z "$chunk_size" ]; then
chunk_size=512
fi
@@ -1812,6 +1812,9 @@ _require_loop()
else
_notrun "This test requires loopback device support"
fi
+
+ # loop device does not handle zone information
+ _require_non_zoned_device ${TEST_DEV}
}
# this test requires kernel support for a secondary filesystem
dm-error and dm-snapshot does not have DM_TARGET_ZONED_HM nor DM_TARGET_MIXED_ZONED_MODEL feature and does not implement .report_zones(). So, it cannot pass the zone information from the down layer (zoned device) to the upper layer. Loop device also cannot pass the zone information. This patch requires non-zoned block device for the tests using these ones. Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> --- common/dmerror | 3 +++ common/dmhugedisk | 3 +++ common/rc | 3 +++ 3 files changed, 9 insertions(+)