parity ops: Correctly recognize the end of the plex. Previously we

were running off the end and generating worrying but harmless messages
about parity errors that wouldn't go away.
This commit is contained in:
Greg Lehey 2000-06-05 03:01:07 +00:00
parent 3ad254b3de
commit f68de48880

View File

@ -317,7 +317,7 @@ parityops(struct vinum_ioctl_msg *data)
}
if (reply->error == EAGAIN) { /* still OK, */
plex->checkblock = pstripe + (pbp->b_bcount >> DEV_BSHIFT); /* moved this much further down */
if (pstripe >= SD[plex->sdnos[0]].sectors) { /* finished */
if (plex->checkblock >= SD[plex->sdnos[0]].sectors) { /* finished */
plex->checkblock = 0;
reply->error = 0;
}