-
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 list shows incorrect usage/size and format #2173
Comments
Seems caused by the PR linux-nvme/libnvme#754 changes linux-nvme/libnvme@7959f52 so can you test the issue behavior by reverting the commit? (Since the issue not caused on my local environment as the nvme list works correctly with the latest version.) Note: The PR includes the changes linux-nvme/libnvme@5224243 also so may needed to revert the commit also but not sure. |
was able to duplicate using nvme-cli v2.6 with libnvme v1.7 and libnvme v1.7.1 ./nvme version
./nvme version
|
Could you post the output of cat /sys/class/nvme/nvme0/nvme0n1/queue/physical_block_size and nvme id-ns /dev/nvme0n1 I am sure physical_block_size says it's 4k, but the interesting part is what |
Thanks, below is output.
and
|
Wait, why would we check physical? The logical is the one to use. |
adding logical block size, output shows 512
|
My bad, I got this wrong. Let me fix this. |
Should work again as expected. Thanks for the report! |
nvme-cli version 2.7 or higher shows incorrect usage and format. size is 7.68 TB, but shows 61.45TB and format show 512B with older nvm-cli, but sees 4KiB.
nvme version 2.7.1 (git 2.7.1)
libnvme version 1.7 (git 1.7)
v2.6
nvme version 2.6 (git 2.6)
libnvme version 1.6 (git 1.6)
The text was updated successfully, but these errors were encountered: