Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2014 16:40:44 +0000 (UTC)
From:      Jim Harris <jimharris@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r265558 - stable/9/sbin/nvmecontrol
Message-ID:  <201405071640.s47GeiBi067915@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jimharris
Date: Wed May  7 16:40:44 2014
New Revision: 265558
URL: http://svnweb.freebsd.org/changeset/base/265558

Log:
  MFC r260381:
  
  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.

Modified:
  stable/9/sbin/nvmecontrol/devlist.c
Directory Properties:
  stable/9/sbin/nvmecontrol/   (props changed)

Modified: stable/9/sbin/nvmecontrol/devlist.c
==============================================================================
--- stable/9/sbin/nvmecontrol/devlist.c	Wed May  7 16:37:04 2014	(r265557)
+++ stable/9/sbin/nvmecontrol/devlist.c	Wed May  7 16:40:44 2014	(r265558)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405071640.s47GeiBi067915>