-
Notifications
You must be signed in to change notification settings - Fork 664
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
base: master
Are you sure you want to change the base?
Conversation
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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(...)
?
There was a problem hiding this comment.
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]>
6a8f3ef
to
3ed2208
Compare
The command functions combined with the changed-ns-list-log command. The output almost same but different as lists attached or allocated NSs.