svn commit: r305459 - stable/9/sys/boot/i386/libi386

Andriy Gapon avg at FreeBSD.org
Tue Sep 6 06:13:53 UTC 2016


Author: avg
Date: Tue Sep  6 06:13:52 2016
New Revision: 305459
URL: https://svnweb.freebsd.org/changeset/base/305459

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

Modified:
  stable/9/sys/boot/i386/libi386/biosdisk.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/boot/   (props changed)

Modified: stable/9/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- stable/9/sys/boot/i386/libi386/biosdisk.c	Tue Sep  6 06:13:47 2016	(r305458)
+++ stable/9/sys/boot/i386/libi386/biosdisk.c	Tue Sep  6 06:13:52 2016	(r305459)
@@ -266,9 +266,11 @@ bd_print(int verbose)
 	int i;
 
 	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);
 		pager_output(line);
 		dev.d_dev = &biosdisk;
 		dev.d_unit = i;


More information about the svn-src-stable-9 mailing list