1
0
Fork 0

Merging upstream version 2.8.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:26:13 +01:00
parent 60735e10df
commit 2b9f904876
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
407 changed files with 2341 additions and 926 deletions

View file

@ -3836,7 +3836,7 @@ static void json_support_log(struct nvme_supported_log_pages *support_log,
}
}
obj_add_obj(r, "supported_logs", valid);
obj_add_array(r, "supported_logs", valid);
json_print(r);
}
@ -4148,11 +4148,11 @@ static void json_directive_show_fields_identify(__u8 doper, __u8 *field, struct
obj_add_array(r, "Directive Persistent Across Controller Level Resets",
persistent);
obj_add_str(persistent, "Identify Directive",
*(field + 32) & 0x1 ? "Enabled" : "Disabled");
*(field + 64) & 0x1 ? "Enabled" : "Disabled");
obj_add_str(persistent, "Stream Directive",
*(field + 32) & 0x2 ? "Enabled" : "Disabled");
*(field + 64) & 0x2 ? "Enabled" : "Disabled");
obj_add_str(persistent, "Data Placement Directive",
*(field + 32) & 0x4 ? "Enabled" : "Disabled");
*(field + 64) & 0x4 ? "Enabled" : "Disabled");
break;
default:
obj_add_str(r, "Error", "invalid directive operations for Identify Directives");