Message ID | 20170701003321.13360-2-vishal.l.verma@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f11c93c677d3 |
Headers | show |
On Fri, Jun 30, 2017 at 5:33 PM, Vishal Verma <vishal.l.verma@intel.com> wrote: > 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 <kaushik.a.kanetkar@intel.com> > Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Applied.
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;
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 <kaushik.a.kanetkar@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> --- ndctl/dimm.c | 5 +++++ 1 file changed, 5 insertions(+)