Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvme: add NVMe 2.1 changed-alloc-ns-list-log command #2675

Merged
merged 5 commits into from
Feb 10, 2025

Conversation

ikegami-t
Copy link
Contributor

The command functions combined with the changed-ns-list-log command. The output almost same but different as lists attached or allocated NSs.

@ikegami-t
Copy link
Contributor Author

Note: Just realized to add the alloc option into the existing the changed-ns-list-log command instead of to add the changed-alloc-ns-list-log command.

nvme-wrap.c Outdated
{
if (alloc)
return nvme_get_log_changed_alloc_ns_list(dev->direct.fd, rae, len, ns_log);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suppose the do_admin_op wrapper should be used here as well. Do we miss an API update in libnvme-mi?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sorry for the missing so will update libnvme-mi to add APIs later. Thank you.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please introduce a new wrapper function for nvme_get_log_changed_alloc_ns_list. These function here should really only switch between the standard API and MI API interfaces. There should be no logic besides this. Note, these wrappers will go away when we start with libnvme 2.x hopefully soonish.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood and noted then fixed the changes as so. Thank you.

@ikegami-t
Copy link
Contributor Author

Rebased and fixed the conflict errors.

@ikegami-t ikegami-t force-pushed the alloc-ns-list branch 2 times, most recently from 7afee19 to 79984d5 Compare February 8, 2025 13:02
Return error for the missing get log rotational media function
for non MI devices.

Signed-off-by: Tokunori Ikegami <[email protected]>
The command functions combined with the changed-ns-list-log command.
The output almost same but different as lists attached or allocated NSs.

Signed-off-by: Tokunori Ikegami <[email protected]>
Added the nvme-changed-alloc-ns-list-log.txt file.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since missed to add the command into the command list.

Signed-off-by: Tokunori Ikegami <[email protected]>
Both bash and zsh completions updated for the command.

Signed-off-by: Tokunori Ikegami <[email protected]>
@igaw
Copy link
Collaborator

igaw commented Feb 10, 2025

dropped/splitted unrelated changes from the main patch.

@igaw igaw merged commit 3711526 into linux-nvme:master Feb 10, 2025
17 of 18 checks passed
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