]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkzone: Fix zone condition strings handling
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 12 Apr 2017 09:20:32 +0000 (18:20 +0900)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Apr 2017 09:25:31 +0000 (11:25 +0200)
commitb1484d8d37a8bb90dca99131b08e38d6c8399cac
treec230b62bcafae40f339f23c4ae4249285f13d734
parent73be2127cb26b9fdfc6b9417b431d792a028423d
blkzone: Fix zone condition strings handling

Fixed the condition strings for implicit open and explicit open to
match the man page defined strings ("oi" and "oe"). Also while at it,
correct the condition_str array entries adding the reserved "xC" case
so that the read_only, full and offline conditions match the condition
codes. This increases the array size to 16, so also fix the condition
code masking when displaying the result.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
sys-utils/blkzone.c