aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/md
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 032c5fe15582..6b5431c792ff 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -369,8 +369,8 @@ mdopen(dev_t dev, int flag, int fmt, struct thread *td)
sc->disk.d_sectorsize = sc->secsize;
sc->disk.d_mediasize = (off_t)sc->nsect * sc->secsize;
- sc->disk.d_fwsectors = 0;
- sc->disk.d_fwheads = 0;
+ sc->disk.d_fwsectors = sc->nsect > 63 ? 63 : sc->nsect;
+ sc->disk.d_fwheads = 1;
sc->opencount++;
return (0);
}