Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2016 06:40:52 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303738 - head/sys/boot/i386/libi386
Message-ID:  <201608040640.u746eqla085033@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Thu Aug  4 06:40:51 2016
New Revision: 303738
URL: https://svnweb.freebsd.org/changeset/base/303738

Log:
  report sector size and number of sectors in lsdev output for bios disks
  
  MFC after:	3 weeks

Modified:
  head/sys/boot/i386/libi386/biosdisk.c

Modified: head/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- head/sys/boot/i386/libi386/biosdisk.c	Thu Aug  4 05:05:35 2016	(r303737)
+++ head/sys/boot/i386/libi386/biosdisk.c	Thu Aug  4 06:40:51 2016	(r303738)
@@ -315,9 +315,11 @@ bd_print(int verbose)
 
 	pager_open();
 	for (i = 0; i < nbdinfo; i++) {
-		sprintf(line, "    disk%d:   BIOS drive %c:\n", i,
+		sprintf(line, "    disk%d:   BIOS drive %c (%ju X %u):\n", i,
 		    (bdinfo[i].bd_unit < 0x80) ? ('A' + bdinfo[i].bd_unit):
-		    ('C' + bdinfo[i].bd_unit - 0x80));
+		    ('C' + bdinfo[i].bd_unit - 0x80),
+		    (uintmax_t)bdinfo[i].bd_sectors,
+		    bdinfo[i].bd_sectorsize);
 		if (pager_output(line))
 			break;
 		dev.d_dev = &biosdisk;



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