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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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.

{
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.

k = NULL;

if (k)
obj_add_str(r, k, devname);
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about

if (asprintf(...) > 0)
    obj_add_str(...)

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good so fixed as mentioned. Thank you.

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]>
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