-/* $OpenBSD: acd.c,v 1.17 1996/12/11 19:08:24 deraadt Exp $ */
+/* $OpenBSD: acd.c,v 1.18 1996/12/24 01:33:38 deraadt Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
bzero(acd->sc_dk.dk_cpulabel, sizeof(struct cpu_disklabel));
lp->d_secsize = acd->params.blksize;
+ if (lp->d_secsize > 2048)
+ lp->d_secsize = 2048;
lp->d_ntracks = 1;
lp->d_nsectors = 100;
lp->d_ncylinders = (acd->params.disksize / 100) + 1;
ATAPI_DEBUG_PRINT(("acd_size: %ld %ld\n", acd->params.blksize,
acd->params.disksize));
- if (acd->params.blksize > 2048)
- acd->params.blksize = 2048;
return acd->params.disksize;
}
-/* $OpenBSD: cd.c,v 1.18 1996/12/11 19:08:14 deraadt Exp $ */
+/* $OpenBSD: cd.c,v 1.19 1996/12/24 01:33:33 deraadt Exp $ */
/* $NetBSD: cd.c,v 1.92 1996/05/05 19:52:50 christos Exp $ */
/*
bzero(cd->sc_dk.dk_cpulabel, sizeof(struct cpu_disklabel));
lp->d_secsize = cd->params.blksize;
+ if (lp->d_secsize > 2048)
+ lp->d_secsize = 2048;
lp->d_ntracks = 1;
lp->d_nsectors = 100;
lp->d_ncylinders = (cd->params.disksize / 100) + 1;