svn commit: r253301 - stable/9/sbin/nvmecontrol
Jim Harris
jimharris at FreeBSD.org
Fri Jul 12 22:15:50 UTC 2013
Author: jimharris
Date: Fri Jul 12 22:15:50 2013
New Revision: 253301
URL: http://svnweb.freebsd.org/changeset/base/253301
Log:
MFC r253115:
Condense the output for displaying LBA formats.
Approved by: re (kib)
Modified:
stable/9/sbin/nvmecontrol/identify.c
Directory Properties:
stable/9/sbin/nvmecontrol/ (props changed)
Modified: stable/9/sbin/nvmecontrol/identify.c
==============================================================================
--- stable/9/sbin/nvmecontrol/identify.c Fri Jul 12 22:14:57 2013 (r253300)
+++ stable/9/sbin/nvmecontrol/identify.c Fri Jul 12 22:15:50 2013 (r253301)
@@ -124,13 +124,11 @@ print_namespace(struct nvme_namespace_da
printf("Thin Provisioning: %s\n",
nsdata->nsfeat.thin_prov ? "Supported" : "Not Supported");
printf("Number of LBA Formats: %d\n", nsdata->nlbaf+1);
- printf("Current LBA Format: LBA Format #%d\n",
+ printf("Current LBA Format: LBA Format #%02d\n",
nsdata->flbas.format);
- for (i = 0; i <= nsdata->nlbaf; i++) {
- printf("LBA Format #%d:\n", i);
- printf(" LBA Data Size: %d\n",
- 1 << nsdata->lbaf[i].lbads);
- }
+ for (i = 0; i <= nsdata->nlbaf; i++)
+ printf("LBA Format #%02d: Data Size: %5d Metadata Size: %5d\n",
+ i, 1 << nsdata->lbaf[i].lbads, nsdata->lbaf[i].ms);
}
static void
More information about the svn-src-stable-9
mailing list