Skip to content

Conversation

@ikegami-t
Copy link
Contributor

Add the cmd argument for nvme_show_err() to use nvme_show_opcode_status(). Do not change nvme_show_err() itself so add nvme_show_cmd_err() instead. Also add admin variable into the nvme_passthru_cmd structure.

Add the cmd argument for nvme_show_err() to use nvme_show_opcode_status().
Do not change nvme_show_err() itself so add nvme_show_cmd_err() instead.
Also add admin variable into the nvme_passthru_cmd structure.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
@ikegami-t
Copy link
Contributor Author

This is for the PR: #3056 closed without merging but seems difficult to add the feature to the nvme_show_err without many changes so just add nvme_show_cmd_err instead.

__u32 timeout_ms;
__u32 rsvd2;
__u64 result;
bool admin;
Copy link
Collaborator

@igaw igaw Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct nvme_passthru_cmd should not be changed. It's a 1:1 mapping of Linux kernel one.

Unfortunately, my original brain farth to just look at the opcode doesn't work.

@igaw
Copy link
Collaborator

igaw commented Jan 22, 2026

I would just introduce two versions nvme_show_cmd_err one

nvme_show_io_cmd_err and nvme_show_admin_cmd_err which call a common function with the right argument. This matches with the passthru API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants