Correct the check if a plex is accessible in case it is not up.

This makes degraded RAID5 plexes actually work.
This commit is contained in:
Lukas Ertl 2005-08-22 23:24:26 +00:00
parent 23655387e9
commit fdb9eda84f

View File

@ -261,7 +261,7 @@ gv_vol_normal_request(struct gv_volume *v, struct bio *bp)
if (p == NULL ||
(p->org == GV_PLEX_RAID5 && p->state < GV_PLEX_DEGRADED) ||
(p->state <= GV_PLEX_DEGRADED)) {
(p->org != GV_PLEX_RAID5 && p->state <= GV_PLEX_DEGRADED)) {
g_destroy_bio(cbp);
bp->bio_children--;
g_io_deliver(bp, ENXIO);