The UEFI 2.7 spec labels add a new lbasize field to labels. Add it to the json output of read-labels.
Reported-by: Kaushik Kanetkar <[email protected]> Signed-off-by: Vishal Verma <[email protected]> --- ndctl/dimm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ndctl/dimm.c b/ndctl/dimm.c index f6a07a7..d0de4d4 100644 --- a/ndctl/dimm.c +++ b/ndctl/dimm.c @@ -159,6 +159,11 @@ static struct json_object *dump_label_json(struct ndctl_cmd *cmd_read, ssize_t s break; json_object_object_add(jlabel, "isetcookie", jobj); + jobj = json_object_new_int64(le64_to_cpu(nslabel.lbasize)); + if (!jobj) + break; + json_object_object_add(jlabel, "lbasize", jobj); + jobj = json_object_new_int64(le64_to_cpu(nslabel.dpa)); if (!jobj) break; -- 2.9.3 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
