linux-nvme / nvme-cli

NVMe management command line interface.
https://nvmexpress.org
GNU General Public License v2.0
1.44k stars 647 forks source link

nvme-print-stdout: fix format index in stdout_nvm_id_ns #2348

Closed francispravin5 closed 2 months ago

francispravin5 commented 3 months ago

This fix for nvme spec 2.0 where FLBAS bits 6:5 indicates the most significant 2 bits of the Format Index that was used to format the namespace. So, use nvme_id_ns_flbas_to_lbaf_inuse function to get the proper format index of the namespace.

igaw commented 2 months ago

Thanks!