1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00

Fix so it compiles with the new disklabel stuff.

This commit is contained in:
Søren Schmidt 2002-09-27 21:56:35 +00:00
parent 3d3816e633
commit 595ecc67ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104066

View File

@ -174,17 +174,17 @@ pst_attach(device_t dev)
psc->disk.d_sectorsize = psc->info->block_size;
psc->disk.d_mediasize = psc->info->capacity;
psc->disk.d_fssectors = 63;
psc->disk.d_fsheads = 255;
psc->disk.d_fwsectors = 63;
psc->disk.d_fwheads = 255;
devstat_add_entry(&psc->stats, "pst", lun, psc->info->block_size,
DEVSTAT_NO_ORDERED_TAGS,
DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_IDE,
DEVSTAT_PRIORITY_DISK);
printf("pst%d: %lluMB <%.40s> [%d/%d/%d] on %.16s\n", lun,
(unsigned long long)psc->disk.d_label.d_secperunit / (1024 * 2),
name, psc->disk.d_label.d_ncylinders, 255, 63,
printf("pst%d: %lluMB <%.40s> [%lld/%d/%d] on %.16s\n", lun,
(unsigned long long)psc->info->capacity / (1024 * 1024),
name, psc->info->capacity/(512*255*63), 255, 63,
device_get_nameunit(psc->iop->dev));
EVENTHANDLER_REGISTER(shutdown_post_sync, pst_shutdown,