mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
libnvdimm, label: honor the lba size specified in v1.2 labels
Previously we only honored the lba size for blk-aperture mode namespaces. For pmem namespaces the lba size was just assumed to be 512. With the new v1.2 label definition and compatibility with other operating environments, the ->lbasize property is now respected for pmem namespaces. Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
@@ -75,12 +75,14 @@ struct nd_namespace_io {
|
||||
/**
|
||||
* struct nd_namespace_pmem - namespace device for dimm-backed interleaved memory
|
||||
* @nsio: device and system physical address range to drive
|
||||
* @lbasize: logical sector size for the namespace in block-device-mode
|
||||
* @alt_name: namespace name supplied in the dimm label
|
||||
* @uuid: namespace name supplied in the dimm label
|
||||
* @id: ida allocated id
|
||||
*/
|
||||
struct nd_namespace_pmem {
|
||||
struct nd_namespace_io nsio;
|
||||
unsigned long lbasize;
|
||||
char *alt_name;
|
||||
u8 *uuid;
|
||||
int id;
|
||||
|
Reference in New Issue
Block a user