From: deraadt Date: Thu, 5 Dec 1996 17:22:40 +0000 (+0000) Subject: whoops, correct d_nsectors X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0ebd42eea588f83a9b372f654e51375dd34256fe;p=openbsd whoops, correct d_nsectors --- 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);