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-print: misc fixes to a few verbose outputs #2696

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

martin-gpy
Copy link
Contributor

No description provided.

Add descriptions for the nsze, ncap & nuse fields in the verbose
output of the id-ns command for better clarity. For e.g.

nvme id-ns /dev/nvme1n1 -v
dev: /dev/nvme1n1, fd: 3
NVME Identify Namespace 1:
nsze    : 0x280000      Total size in logical blocks
ncap    : 0x280000      Maximum size in logical blocks
nuse    : 0x13b3e       Current size in logical blocks
...

Signed-off-by: Martin George <[email protected]>
Add identifier & NSID tags in the verbose output of the list-ns
command for better clarity. And while at it, print a common
"NVMe Namespace List" tag at the top too. For e.g.

nvme list-ns /dev/nvme1n1 -v
dev: /dev/nvme1n1, fd: 3
NVME Namespace List:
Identifier    0: NSID 0x1
Identifier    1: NSID 0x2
...

Signed-off-by: Martin George <[email protected]>
@igaw igaw merged commit 3f3c4ff into linux-nvme:master Feb 10, 2025
17 checks passed
@igaw
Copy link
Collaborator

igaw commented Feb 10, 2025

Thanks!

I just realized we need to fix the '-v' debug output for the file handles. Now I remember why I didn't like it in the first place :)

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