svn commit: r305458 - stable/10/sys/boot/i386/libi386
Andriy Gapon
avg at FreeBSD.org
Tue Sep 6 06:13:49 UTC 2016
Author: avg
Date: Tue Sep 6 06:13:47 2016
New Revision: 305458
URL: https://svnweb.freebsd.org/changeset/base/305458
Log:
MFC r303738: report sector size and number of sectors in lsdev output
for bios disks
Modified:
stable/10/sys/boot/i386/libi386/biosdisk.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- stable/10/sys/boot/i386/libi386/biosdisk.c Tue Sep 6 06:13:36 2016 (r305457)
+++ stable/10/sys/boot/i386/libi386/biosdisk.c Tue Sep 6 06:13:47 2016 (r305458)
@@ -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-all
mailing list