diff options
author | grog <grog@FreeBSD.org> | 2000-06-05 03:01:07 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2000-06-05 03:01:07 +0000 |
commit | 243ad5208b2df8a252932d583baf6d4647a576a9 (patch) | |
tree | da3dd2df1424d5506f4947c0bde97b7c209acf45 /sys/dev/vinum | |
parent | ed202d13d93202efb74e11f39508c7d882f7e0db (diff) | |
download | FreeBSD-src-243ad5208b2df8a252932d583baf6d4647a576a9.zip FreeBSD-src-243ad5208b2df8a252932d583baf6d4647a576a9.tar.gz |
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.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r-- | sys/dev/vinum/vinumrevive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumrevive.c b/sys/dev/vinum/vinumrevive.c index f52869e..07b7390 100644 --- a/sys/dev/vinum/vinumrevive.c +++ b/sys/dev/vinum/vinumrevive.c @@ -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; } |