From 9d2ac93c85534a0899a8c6808affbc1bc98d6ad1 Mon Sep 17 00:00:00 2001 From: Steven Seungcheol Lee Date: Thu, 9 Dec 2021 16:44:56 +0900 Subject: [PATCH] zns: Bug fix(wrong api call from changed_zone_list) Signed-off-by: Steven Seungcheol Lee --- plugins/zns/zns.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/zns/zns.c b/plugins/zns/zns.c index 5d0ecec8..04b8a208 100644 --- a/plugins/zns/zns.c +++ b/plugins/zns/zns.c @@ -1077,8 +1077,7 @@ static int changed_zone_list(int argc, char **argv, struct command *cmd, struct } } - err = nvme_get_nsid_log(fd, NVME_LOG_LID_ZNS_CHANGED_ZONES, cfg.namespace_id, - sizeof(log), &log); + err = nvme_get_log_zns_changed_zones(fd, cfg.namespace_id, cfg.rae, &log); if (!err) nvme_show_zns_changed(&log, flags); else if (err > 0) -- 2.50.1