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

ioctl: add nvme_get_egid_log() #936

Merged
merged 10 commits into from
Jan 8, 2025
Merged

Conversation

ikegami-t
Copy link
Contributor

This is to use for the endurance group scope log page.

@ikegami-t ikegami-t force-pushed the get-egid-log branch 8 times, most recently from 71bff73 to 97d333d Compare January 4, 2025 16:41
src/nvme/ioctl.h Show resolved Hide resolved
.len = len,
.nsid = NVME_NSID_ALL,
.lsp = rgo,
.rae = rae,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Timeout missing?

src/nvme/ioctl.h Show resolved Hide resolved
src/nvme/ioctl.h Show resolved Hide resolved
@igaw
Copy link
Collaborator

igaw commented Jan 7, 2025

Looks all good. Just my comment on the timeout.

@ikegami-t
Copy link
Contributor Author

The default timeout value is zero so not needed to set as initialized the variable args timeout as zero. Should we set the default value explicitly? Thank you.

@igaw
Copy link
Collaborator

igaw commented Jan 7, 2025

I see. Though it would be possible to set it and then some of the commands have value 0 and the test is something else. Let's follow the existing pattern. That makes it a bit more consistent. IIRC, this is also why the other not used fields in the existing commands are excplicitly set to 0 (e.g. lsi)

This is to use for the endurance group scope log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
@ikegami-t
Copy link
Contributor Author

Fixed the patch to set the timeout and other values unset before. I just understood again as before you mentioned for the nvme-cli commands config values as same. Thank you.

@igaw igaw merged commit 14daa26 into linux-nvme:master Jan 8, 2025
15 checks passed
@igaw
Copy link
Collaborator

igaw commented Jan 8, 2025

Thanks!

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