summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2014-01-06 23:48:47 +0000
committerjimharris <jimharris@FreeBSD.org>2014-01-06 23:48:47 +0000
commitd4fd5662ec1797d0ae0141639ff2fd31e63eecbc (patch)
treeca97774804728ab25684b1961a4d90e93d87a2da /sbin
parent35066c7a68d4840b84ec0f7aa5a6ce2e18f46e03 (diff)
downloadFreeBSD-src-d4fd5662ec1797d0ae0141639ff2fd31e63eecbc.zip
FreeBSD-src-d4fd5662ec1797d0ae0141639ff2fd31e63eecbc.tar.gz
For "nvmecontrol devlist", show namespace sizes in terms of MB instead of
GB to improve granularity of the reporting - especially for namespaces that are on the order of 1 or 2 GB. Submitted by: Tony Beltran <anthony.beltran@emc.com> MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r--sbin/nvmecontrol/devlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/nvmecontrol/devlist.c b/sbin/nvmecontrol/devlist.c
index f73d643..35a46c1 100644
--- a/sbin/nvmecontrol/devlist.c
+++ b/sbin/nvmecontrol/devlist.c
@@ -99,11 +99,11 @@ devlist(int argc, char *argv[])
sprintf(name, "%s%d%s%d", NVME_CTRLR_PREFIX, ctrlr,
NVME_NS_PREFIX, i+1);
read_namespace_data(fd, i+1, &nsdata);
- printf(" %10s (%lldGB)\n",
+ printf(" %10s (%lldMB)\n",
name,
nsdata.nsze *
(long long)ns_get_sector_size(&nsdata) /
- 1024 / 1024 / 1024);
+ 1024 / 1024);
}
close(fd);
OpenPOWER on IntegriCloud