From 97ee5a3474cfa0dd82c7b79aeb2d2201d84da107 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 6 Dec 1996 11:23:02 +0000 Subject: [PATCH] repair max sectors --- sys/arch/sparc/dev/fd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c index 911ab1dcdfd..c9b93bac0a2 100644 --- a/sys/arch/sparc/dev/fd.c +++ b/sys/arch/sparc/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.12 1996/12/05 17:16:59 deraadt Exp $ */ +/* $OpenBSD: fd.c,v 1.13 1996/12/06 11:23:02 deraadt Exp $ */ /* $NetBSD: fd.c,v 1.33.4.1 1996/06/12 20:52:25 pk Exp $ */ /*- @@ -1649,6 +1649,7 @@ fdgetdisklabel(dev) lp->d_type = DTYPE_FLOPPY; strncpy(lp->d_packname, "fictitious", sizeof(lp->d_packname)); lp->d_rpm = 300; /* XXX like it matters... */ + lp->d_secperunit = fd->sc_type->size; lp->d_interleave = 1; lp->d_flags = D_REMOVABLE; @@ -1664,7 +1665,7 @@ fdgetdisklabel(dev) /* * Call the generic disklabel extraction routine. */ - (void) readdisklabel(dev, fdstrategy, lp, clp); + errstring = readdisklabel(dev, fdstrategy, lp, clp); if (errstring) { printf("%s: %s\n", fd->sc_dv.dv_xname, errstring); return; -- 2.20.1