From ee014b82ac54058bfdb107be176525577f11aade Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 22 Jul 2022 14:29:48 +0200 Subject: [PATCH] ioctl: Honor rae in nvme_get_nsid_log The nvme_get_nsid_log() helper has a rae (Retain Asynchronous Events) parameter, but we currently ignore this when constructing the Get Log Page command arguments. This is a behavior change and not an API change. But the good thing is only for newly build binaries because all helpers are static inline fuctions. Reported-by: Reported-by: Jeremy Kerr Signed-off-by: Daniel Wagner --- src/nvme/ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvme/ioctl.h b/src/nvme/ioctl.h index 379c43a9..d559b12e 100644 --- a/src/nvme/ioctl.h +++ b/src/nvme/ioctl.h @@ -1244,7 +1244,7 @@ static inline int nvme_get_nsid_log(int fd, bool rae, .lsi = NVME_LOG_LSI_NONE, .lsp = NVME_LOG_LSP_NONE, .uuidx = NVME_UUID_NONE, - .rae = false, + .rae = rae, .ot = false, };