]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkzone: don't show wptr when zones are full
authorWilfred Mallawa <wilfred.mallawa@wdc.com>
Thu, 12 Feb 2026 03:02:03 +0000 (13:02 +1000)
committerWilfred Mallawa <wilfred.mallawa@wdc.com>
Thu, 12 Feb 2026 03:15:15 +0000 (13:15 +1000)
commitb032247f48d8b6a13bf8541eb663c779e448f568
tree74caf74c48a9fab1e0ff6e1f079845f2f001a3a5
parent4a4eb88f263bfffeee75cfcabcb6e364ef5900a3
blkzone: don't show wptr when zones are full

blkzone report displays the write pointer when zones are full, however, the
writepointer value is not accurate for full zones as all zone LBAs have been
written. Instead, fix this so that we show "N/A" for the writepointer field
if the zone condition is full.

While we are at it, extend this behavior for convetional zones instead
of displaying 0 for the writepointer.

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
sys-utils/blkzone.c