]> www.infradead.org Git - users/hch/blktests.git/commit
tests: Introduce zbd test group
authorMasato Suzuki <masato.suzuki@wdc.com>
Mon, 28 Jan 2019 13:14:50 +0000 (22:14 +0900)
committerOmar Sandoval <osandov@fb.com>
Tue, 5 Feb 2019 18:51:14 +0000 (10:51 -0800)
commit20a4e6585ebd26a8c94e397a94dfb5f250c7f6f1
treebe88a079bfd594c73061ffc1f747e4a22f1c1323
parentd42cc3f85e0dec11924e6cb14eeb1fa8c05c76e3
tests: Introduce zbd test group

The zoned block device (zbd) test group is used to gather all tests
specific to zoned block devices (null_blk device with zoned mode enabled,
SMR disks, dm-linear on top of zoned devices, etc). Execution of this group
requires that the kernel be compiled with the block layer
CONFIG_BLK_DEV_ZONED option enabled and also requires the null_blk driver
to have zoned mode support (added in kernel 4.19).

This group rc script implements _fallback_null_blk_zoned() helper function
which initailize a null_blk device with zoned mode. Each of the zbd group
test cases calls it in fallback_device() function. This allows the zbd
group test cases fallback to the null_blk device even if the TEST_DEVS
is empty. With this, all tests scripts can be written by only defining
the test_device() function while allowing operation on both null_blk and
user specified devices.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Masato Suzuki <masato.suzuki@wdc.com>
tests/zbd/rc [new file with mode: 0644]