diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-14 14:22:29 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-14 14:22:29 +0000 |
| commit | 64b023f4bdeb8e13517204693625262e733e645c (patch) | |
| tree | 115c66d3b3d9758e8657f5d6dbcf569a60f1d6a3 /sys/kern/subr_disk.c | |
| parent | ed583c2855f6028231f904e55deebd941b93db7b (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_disk.c')
| -rw-r--r-- | sys/kern/subr_disk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index d233f3cd2418..d33545993395 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 */ |
