Changeset View
Changeset View
Standalone View
Standalone View
sbin/nvmecontrol/identify_ext.c
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | printf("%s%s%s\n", | ||||
NVME_CTRLR_DATA_SANICAP_BES_MASK) ? "block, " : "", | NVME_CTRLR_DATA_SANICAP_BES_MASK) ? "block, " : "", | ||||
((cdata->sanicap >> NVME_CTRLR_DATA_SANICAP_OWS_SHIFT) & | ((cdata->sanicap >> NVME_CTRLR_DATA_SANICAP_OWS_SHIFT) & | ||||
NVME_CTRLR_DATA_SANICAP_OWS_MASK) ? "overwrite" : ""); | NVME_CTRLR_DATA_SANICAP_OWS_MASK) ? "overwrite" : ""); | ||||
} else { | } else { | ||||
printf("Not Supported\n"); | printf("Not Supported\n"); | ||||
} | } | ||||
printf("Abort Command Limit: %d\n", cdata->acl+1); | printf("Abort Command Limit: %d\n", cdata->acl+1); | ||||
printf("Async Event Request Limit: %d\n", cdata->aerl+1); | printf("Async Event Request Limit: %d\n", cdata->aerl+1); | ||||
printf("Number of Firmware Slots: "); | printf("Number of Firmware Slots: %d\n", fw_num_slots); | ||||
if (fw != 0) | printf("Firmware Slot 1 Read-Only: %s\n", fw_slot1_ro ? "Yes" : "No"); | ||||
printf("%d\n", fw_num_slots); | |||||
else | |||||
printf("N/A\n"); | |||||
printf("Firmware Slot 1 Read-Only: "); | |||||
if (fw != 0) | |||||
printf("%s\n", fw_slot1_ro ? "Yes" : "No"); | |||||
else | |||||
printf("N/A\n"); | |||||
printf("Per-Namespace SMART Log: %s\n", | printf("Per-Namespace SMART Log: %s\n", | ||||
ns_smart ? "Yes" : "No"); | ns_smart ? "Yes" : "No"); | ||||
printf("Error Log Page Entries: %d\n", cdata->elpe+1); | printf("Error Log Page Entries: %d\n", cdata->elpe+1); | ||||
printf("Number of Power States: %d\n", cdata->npss+1); | printf("Number of Power States: %d\n", cdata->npss+1); | ||||
if (cdata->ver >= 0x010200) { | if (cdata->ver >= 0x010200) { | ||||
printf("Total NVM Capacity: %s bytes\n", | printf("Total NVM Capacity: %s bytes\n", | ||||
uint128_to_str(to128(cdata->untncap.tnvmcap), | uint128_to_str(to128(cdata->untncap.tnvmcap), | ||||
cbuf, sizeof(cbuf))); | cbuf, sizeof(cbuf))); | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |