report sector size and number of sectors in lsdev output for bios disks
MFC after: 3 weeks
This commit is contained in:
parent
8d17f17043
commit
eec75f198b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user