Populate more fields of the disklabel for PC98.

Submitted by:	Kawanobe Koh <kawanobe@st.rim.or.jp>
This commit is contained in:
Poul-Henning Kamp 2002-10-14 14:22:29 +00:00
parent ed583c2855
commit 64b023f4bd

View File

@ -313,6 +313,8 @@ diskopen(dev_t dev, int oflags, int devtype, struct thread *td)
error = dp->d_devsw->d_open(pdev, oflags, devtype, td);
dp->d_label->d_secsize = dp->d_sectorsize;
dp->d_label->d_secperunit = dp->d_mediasize / dp->d_sectorsize;
dp->d_label->d_nsectors = dp->d_fwsectors;
dp->d_label->d_ntracks = dp->d_fwheads;
}
/* Inherit properties from the whole/raw dev_t */