Populate more fields of the disklabel for PC98.
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
This commit is contained in:
parent
ed583c2855
commit
64b023f4bd
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user