]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: use proper mask to get correct lbafu value
authorFrancis Pravin <francis.p@samsung.com>
Thu, 18 Jul 2024 10:05:44 +0000 (15:35 +0530)
committerDaniel Wagner <wagi@monom.org>
Thu, 18 Jul 2024 11:00:16 +0000 (13:00 +0200)
commitede9a5f87b57d67e92226eca1273abb657ebe6a4
treeeb1e49776028011d50959d86cbf4abf2f8eee648
parent4e128046c4a89b2f8a1ae669a5f305d053ae4add
nvme: use proper mask to get correct lbafu value

The NVME_NS_FLBAS_HIGHER/LOWER_MASK is used to get the format index
value from Formatted LBA Size (FLBAS) field of Identify Namespace
Data Structure. But, We are not getting the proper lbafu value while
using the same macro on user passed format index value.
So, use the proper mask to get the correct lbafu value.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
Reviewed-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
nvme.c