Last commit was bogus. Changed b_bsize to b_bcount.

This commit is contained in:
Poul-Henning Kamp 1994-11-04 05:21:17 +00:00
parent 6ecb4531d3
commit 5ffd7168ce

View File

@ -37,7 +37,7 @@ static int wdtest = 0;
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91 * from: @(#)wd.c 7.2 (Berkeley) 5/9/91
* $Id: wd.c,v 1.58 1994/10/27 20:44:52 jkh Exp $ * $Id: wd.c,v 1.59 1994/11/03 18:16:47 joerg Exp $
*/ */
/* TODO: /* TODO:
@ -457,7 +457,7 @@ wdstrategy(register struct buf *bp)
/* valid unit, controller, and request? */ /* valid unit, controller, and request? */
if (lunit >= NWD || bp->b_blkno < 0 || (du = wddrives[lunit]) == NULL if (lunit >= NWD || bp->b_blkno < 0 || (du = wddrives[lunit]) == NULL
|| bp->b_bsize % DEV_BSIZE != 0) { || bp->b_bcount % DEV_BSIZE != 0) {
bp->b_error = EINVAL; bp->b_error = EINVAL;
bp->b_flags |= B_ERROR; bp->b_flags |= B_ERROR;