+12
−0
+1
−0
+15
−0
+1
−0
Loading
Get protection information format from extended LBA format data structure and hold it in the spdk_nvme_ns structure. We only have nsdata_nvm when elbas is 1 now. However, we may have nsdata_nvm for other purposes in future. Hence, we check both of nsdata_nvm and elbas == 1 when setting PI format. Add a public API spdk_nvme_ns_get_pi_format() for the upper layer to retrieve the PI format of the namespace. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ib7026e0008f4412905744faf961f2d3771a0fea0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23622 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot