Skip to content

Commit 781dfc6

Browse files
wxiong66dwsuse
authored andcommitted
ioctl: Set lsp to action in nvme_get_log_persistent_event
Retrieving PEL fails because the lsp is set to NVME_LOG_LSP_NONE instead of action: # nvme -persistent-event-log -a 1 /dev/nvme0 NVMe status: Command Sequence Error: The command was aborted due to a protocol violation in a multi- command sequence(0xc) Signed-off-by: Wen Xiong <[email protected]> [dwagner: updated commit message] Signed-off-by: Daniel Wagner <[email protected]>
1 parent db0c577 commit 781dfc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nvme/ioctl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,7 @@ static inline int nvme_get_log_persistent_event(int fd,
19611961
.nsid = NVME_NSID_ALL,
19621962
.csi = NVME_CSI_NVM,
19631963
.lsi = NVME_LOG_LSI_NONE,
1964-
.lsp = NVME_LOG_LSP_NONE,
1964+
.lsp = action,
19651965
.uuidx = NVME_UUID_NONE,
19661966
.rae = false,
19671967
.ot = false,

0 commit comments

Comments
 (0)