Author: jimharris
Date: Wed May  7 16:53:42 2014
New Revision: 265568
URL: http://svnweb.freebsd.org/changeset/base/265568

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/10/sbin/nvmecontrol/devlist.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sbin/nvmecontrol/devlist.c
==============================================================================
--- stable/10/sbin/nvmecontrol/devlist.c        Wed May  7 16:52:29 2014        
(r265567)
+++ stable/10/sbin/nvmecontrol/devlist.c        Wed May  7 16:53:42 2014        
(r265568)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to