summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-14 14:22:29 +0000
committerphk <phk@FreeBSD.org>2002-10-14 14:22:29 +0000
commit8762cef2618d62532ad05e9c5e2a1dadfe0d419f (patch)
tree115c66d3b3d9758e8657f5d6dbcf569a60f1d6a3
parent2cd396dc532ef8d1bcf23be48d8042de18c1d8d0 (diff)
downloadFreeBSD-src-8762cef2618d62532ad05e9c5e2a1dadfe0d419f.zip
FreeBSD-src-8762cef2618d62532ad05e9c5e2a1dadfe0d419f.tar.gz
Populate more fields of the disklabel for PC98.
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
-rw-r--r--sys/kern/subr_disk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index d233f3c..d335459 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -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 */
OpenPOWER on IntegriCloud