]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
zns: fix showing system error in report_zones
authorMinwoo Im <minwoo.im.dev@gmail.com>
Tue, 12 Jan 2021 14:37:06 +0000 (23:37 +0900)
committerKeith Busch <kbusch@kernel.org>
Tue, 12 Jan 2021 21:49:01 +0000 (14:49 -0700)
commit59ec39ce3e1f390b916b7d02ba20c4545b9e7319
treed96481cceb6c5aacd5332b562dc35a7ab77a5350
parentec9fcd6affc620482350b59e5c8579146b880de2
zns: fix showing system error in report_zones

If nvme_zns_report_zones() returns system error(negative) value, it
should not be passed to nvme_show_status() which parses NVMe completion
status code in case of positive value from the ioctl.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
plugins/zns/zns.c