Skip to content
Snippets Groups Projects
Commit f81d83d5 authored by Jon Nettleton's avatar Jon Nettleton Committed by Tom Rini
Browse files

nvme: Fix number of blocks detection


NVMe should use the nsze value from the queried device. This will
reflect the total number of blocks of the device and fix detecting
my Samsung 960 EVO 256GB.

Original:
Capacity: 40386.6 MB = 39.4 GB (82711872 x 512)

Fixed:
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

Signed-off-by: default avatarJon Nettleton <jon@solid-run.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 0deb9131
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment