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