identify: print metadata type regardless of PI type
Print the type of metadata (extended LBA / separate buffer), even if protection information is disabled. Changed the way protection information's location is reported to be more accurate (previous "Metadata Location" wasn't precise enough). Aligned all of the namespace information fields, so that all values start from the same column. Change-Id: Ia736db233cbcfdddcfd4a1437907e528f2b8947b Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459623 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
d354d0a342
commit
02f147567c
@ -701,11 +701,13 @@ print_namespace(struct spdk_nvme_ns *ns)
|
|||||||
if (flags & SPDK_NVME_NS_DPS_PI_SUPPORTED) {
|
if (flags & SPDK_NVME_NS_DPS_PI_SUPPORTED) {
|
||||||
printf("End-to-End Data Protection: Supported\n");
|
printf("End-to-End Data Protection: Supported\n");
|
||||||
printf("Protection Type: Type%d\n", nsdata->dps.pit);
|
printf("Protection Type: Type%d\n", nsdata->dps.pit);
|
||||||
printf("Metadata Transfered as: %s\n",
|
printf("Protection Information Transferred as: %s\n",
|
||||||
nsdata->flbas.extended ? "Extended Data LBA" : "Separate Metadata Buffer");
|
|
||||||
printf("Metadata Location: %s\n",
|
|
||||||
nsdata->dps.md_start ? "First 8 Bytes" : "Last 8 Bytes");
|
nsdata->dps.md_start ? "First 8 Bytes" : "Last 8 Bytes");
|
||||||
}
|
}
|
||||||
|
if (nsdata->lbaf[nsdata->flbas.format].ms > 0) {
|
||||||
|
printf("Metadata Transferred as: %s\n",
|
||||||
|
nsdata->flbas.extended ? "Extended Data LBA" : "Separate Metadata Buffer");
|
||||||
|
}
|
||||||
printf("Namespace Sharing Capabilities: %s\n",
|
printf("Namespace Sharing Capabilities: %s\n",
|
||||||
nsdata->nmic.can_share ? "Multiple Controllers" : "Private");
|
nsdata->nmic.can_share ? "Multiple Controllers" : "Private");
|
||||||
printf("Size (in LBAs): %lld (%lldM)\n",
|
printf("Size (in LBAs): %lld (%lldM)\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user