nvme: print the End-to-End data protection information in identify application
Change-Id: I97171328f5c7dea593aa1e9b40a96d7a42f37e2c Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
7552ee5512
commit
18529e917d
@ -354,6 +354,14 @@ print_namespace(struct spdk_nvme_ns *ns)
|
||||
(flags & SPDK_NVME_NS_FLUSH_SUPPORTED) ? "Supported" : "Not Supported");
|
||||
printf("Reservation: %s\n",
|
||||
(flags & SPDK_NVME_NS_RESERVATION_SUPPORTED) ? "Supported" : "Not Supported");
|
||||
if (flags & SPDK_NVME_NS_DPS_PI_SUPPORTED) {
|
||||
printf("End-to-End Data Protection: Supported\n");
|
||||
printf("Protection Type: Type%d\n", nsdata->dps.pit);
|
||||
printf("Metadata Transfered 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");
|
||||
}
|
||||
printf("Size (in LBAs): %lld (%lldM)\n",
|
||||
(long long)nsdata->nsze,
|
||||
(long long)nsdata->nsze / 1024 / 1024);
|
||||
|
Loading…
Reference in New Issue
Block a user