]> www.infradead.org Git - users/hch/blktests.git/commit
zbd/003: Reset zones when the test device has max_active_zones limit
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 1 Oct 2020 10:15:31 +0000 (19:15 +0900)
committerOmar Sandoval <osandov@fb.com>
Thu, 22 Oct 2020 21:36:31 +0000 (14:36 -0700)
commitcd65a3ae66c2cafc754919099d43635c4097ef25
tree03c4cdbe0ab5fad0dd045050086b1f8eedc24615
parentd533a5944c08a67d3858c0728d33a9c0bffbd8b5
zbd/003: Reset zones when the test device has max_active_zones limit

When the test target device has the max_active_zones limit, write
operations by test case zbd/003 may open zones beyond the limit and
trigger write failures.

To avoid the failure, check max_active_zones limit of the test target
device. If the limit is valid, reset all zones of the device at test
start to ensure that number of open zones does not exceed the limit.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/zbd/003