From 0ebd42eea588f83a9b372f654e51375dd34256fe Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 5 Dec 1996 17:22:40 +0000 Subject: [PATCH] whoops, correct d_nsectors --- sys/dev/isa/fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index ae2a3156009..8f90d35b399 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.31 1996/12/05 17:16:05 deraadt Exp $ */ +/* $OpenBSD: fd.c,v 1.32 1996/12/05 17:22:40 deraadt Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -970,7 +970,7 @@ fdioctl(dev, cmd, addr, flag, p) lp->d_secsize = 128 << fd->sc_type->secsize; lp->d_secpercyl = fd->sc_type->seccyl; lp->d_ntracks = fd->sc_type->heads; - lp->d_nsectors = fd->sc_type->seccyl; + lp->d_nsectors = fd->sc_type->sectrac; lp->d_ncylinders = fd->sc_type->tracks; strncpy(lp->d_typename, "floppy disk", 16); -- 2.20.1