Skip to content

Commit 55045b0

Browse files
committed
zbd/002: do not check write pointers of conventional zones
After the recent change in util-linux [1], the 'blkzone report' command no longer reports numeric values for write pointers when the write pointers are invalid. Instead, now it reports the sting 'N/A'. The test case zbd/002 assumed that 'blkzone report' command would return valid write pointer values for conventional zones. The test case worked before the blkzone change, but now the test fails because of the wrong assumption. To avoid the failure, do not check write pointer values when the zone type is conventional. Link: [1] util-linux/util-linux@b032247 Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent 8c40fa1 commit 55045b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/zbd/002

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ _check_blkzone_report() {
8080
fi
8181

8282
# Check write pointer
83-
if ((cond != ZONE_COND_READ_ONLY &&
83+
if ((zone_type != ZONE_TYPE_CONVENTIONAL &&
84+
cond != ZONE_COND_READ_ONLY &&
8485
cond != ZONE_COND_FULL &&
8586
cond != ZONE_COND_OFFLINE &&
8687
(wptr < 0 || wptr > len) )); then

0 commit comments

Comments
 (0)