]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
ioctl: Honor rae in nvme_get_nsid_log
authorDaniel Wagner <dwagner@suse.de>
Fri, 22 Jul 2022 12:29:48 +0000 (14:29 +0200)
committerDaniel Wagner <dwagner@suse.de>
Fri, 22 Jul 2022 12:35:00 +0000 (14:35 +0200)
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 <jk@codeconstruct.com.au>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/ioctl.h

index 379c43a938dcc04388cdf08098a69476cebfbd26..d559b12e566e4a1a13e67a7c51f10dea4398dc61 100644 (file)
@@ -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,
        };