Message ID | 155000693373.348282.13171493280743990130.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Improve support + testing for labels + info-blocks | expand |
diff --git a/ndctl/dimm.c b/ndctl/dimm.c index cc0bec04c3b2..292beebf9734 100644 --- a/ndctl/dimm.c +++ b/ndctl/dimm.c @@ -140,6 +140,11 @@ static struct json_object *dump_label_json(struct ndctl_dimm *dimm, break; json_object_object_add(jlabel, "nlabel", jobj); + jobj = json_object_new_int64(le64_to_cpu(nslabel.flags)); + if (!jobj) + break; + json_object_object_add(jlabel, "flags", jobj); + jobj = json_object_new_int64(le64_to_cpu(nslabel.isetcookie)); if (!jobj) break;
Recent discussions on some platform implementations setting the LOCAL bit in namespace labels makes it apparent that this field should be decoded in the json representation. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- ndctl/dimm.c | 5 +++++ 1 file changed, 5 insertions(+)