Skip to content

Commit

Permalink
ioctl: Honor rae in nvme_get_nsid_log
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
igaw committed Jul 22, 2022
1 parent f6748bb commit ee014b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvme/ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit ee014b8

Please sign in to comment.