summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2016-09-06 06:13:47 +0000
committeravg <avg@FreeBSD.org>2016-09-06 06:13:47 +0000
commitf531fd05da17b592aa17ac8972ebc9befa51f82a (patch)
treedd34d05b3afa6076c53f9494a1d48dce1f3ff80f
parentca95b01236de914608be599cb0118e3b4d0e7fad (diff)
downloadFreeBSD-src-f531fd05da17b592aa17ac8972ebc9befa51f82a.zip
FreeBSD-src-f531fd05da17b592aa17ac8972ebc9befa51f82a.tar.gz
MFC r303738: report sector size and number of sectors in lsdev output
for bios disks
-rw-r--r--sys/boot/i386/libi386/biosdisk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c
index 2a71d64..a5c22da 100644
--- a/sys/boot/i386/libi386/biosdisk.c
+++ b/sys/boot/i386/libi386/biosdisk.c
@@ -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;
OpenPOWER on IntegriCloud