lib/nvme: fix big endian conversion for logical_block_size
logical_block_size and geometry_logical_block_size are uint32_t, so correct conversion for endianness is used now. Change-Id: Iaa5ff576da8bc4ca65fa21f28eb3afd30507b00a Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/451867 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
parent
89d2efe07e
commit
6f155b15be
@ -580,7 +580,7 @@ opal_check_geometry(struct spdk_opal_dev *dev, const void *data)
|
||||
|
||||
opal_info->geometry = 1;
|
||||
opal_info->geometry_align = geo->align;
|
||||
opal_info->geometry_logical_block_size = from_be64(&geo->logical_block_size);
|
||||
opal_info->geometry_logical_block_size = from_be32(&geo->logical_block_size);
|
||||
opal_info->geometry_lowest_aligned_lba = lowest_lba;
|
||||
opal_info->geometry_alignment_granularity = align;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user