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:
parent
3ad254b3de
commit
f68de48880
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user