]> www.infradead.org Git - users/hch/blktests.git/commit
zbd/007: Reset test target zones at test end
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 13 Jul 2021 10:12:39 +0000 (19:12 +0900)
committerOmar Sandoval <osandov@fb.com>
Wed, 25 Aug 2021 00:45:32 +0000 (17:45 -0700)
commitead3f78a94cc02d5f2266fa6e28b0180bcd6f5af
treea37660f2907f1e9a93996c8208c0693b9c0733cf
parent21b514d81adb1d0eacc135332a7950acc0e485aa
zbd/007: Reset test target zones at test end

The test case zbd/007 checks write pointer mapping between a logical
device and its container device. To do so, it moves write pointers of
the container device by writing data to the container device. When the
logical device is a dm-crypt device, this test case works as expected,
but the data written to the container device is not encrypted, then it
leaves broken data on the logical, dm-crypt device. This results in I/O
errors in the following operations to the dm-crypt device.

To avoid the I/O errors, reset the test target zones of the logical
device at the test case end to wipe out the broken data.

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