On Wed, Feb 9, 2022 at 6:01 PM <[email protected]> wrote: > > From: Alison Schofield <[email protected]> > > Per the CXL specification, the partition alignment field reports > the alignment value in multiples of 256MB. In the libcxl API, values > for all capacity fields are defined to return bytes. > > Update the partition alignment accessor to return bytes so that it > is in sync with other capacity related fields. Use the helpers > cmd_to_identify() and cxl_capacity_to_bytes() to accomplish. > > Since this is early in the development cycle, the expectation is that > no third party consumers of this library have come to depend on the > encoded capacity field. If that is not the case, the original format > can be restored, and a new _bytes version introduced. > > Signed-off-by: Alison Schofield <[email protected]>
Looks good, Reviewed-by: Dan Williams <[email protected]>
