]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkzone: Do not print zone capacity if not supported
authorAndreas Hindborg <andreas.hindborg@wdc.com>
Wed, 16 Mar 2022 08:39:05 +0000 (09:39 +0100)
committerAndreas Hindborg <andreas.hindborg@wdc.com>
Wed, 16 Mar 2022 09:32:38 +0000 (10:32 +0100)
commitefea86773ef57245bf821c51811d89309eb37e9a
treec50f1b068bf230fcbf4fefd71942fd7b30c76449
parent18aa62cb94d8dc68be73e53480acc623be0e65b6
blkzone: Do not print zone capacity if not supported

If `blkzone` is built against kernel headers that do not define
`BLK_ZONE_REP_CAPACITY`, `blkzone report` will use zone size when printing zone
capacity. This patch changes the behavior of `blockzone report` in this case to
omit the capacity field instead of using the potentially wrong value.

Signed-off-by: Andreas Hindborg <andreas.hindborg@wdc.com>
sys-utils/blkzone.c