summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-06-05 03:01:07 +0000
committergrog <grog@FreeBSD.org>2000-06-05 03:01:07 +0000
commit243ad5208b2df8a252932d583baf6d4647a576a9 (patch)
treeda3dd2df1424d5506f4947c0bde97b7c209acf45 /sys/dev/vinum
parented202d13d93202efb74e11f39508c7d882f7e0db (diff)
downloadFreeBSD-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.c2
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;
}
OpenPOWER on IntegriCloud