svn commit: r303738 - head/sys/boot/i386/libi386

Andriy Gapon avg at FreeBSD.org
Thu Aug 4 06:40:53 UTC 2016


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;


More information about the svn-src-head mailing list