Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/raid3/g_raid3.c
Show First 20 Lines • Show All 1,440 Lines • ▼ Show 20 Lines | KASSERT(sc != NULL && (sc->sc_state == G_RAID3_DEVICE_STATE_DEGRADED || | ||||
bp->bio_to->error, bp->bio_to->name)); | bp->bio_to->error, bp->bio_to->name)); | ||||
G_RAID3_LOGREQ(3, bp, "Request received."); | G_RAID3_LOGREQ(3, bp, "Request received."); | ||||
switch (bp->bio_cmd) { | switch (bp->bio_cmd) { | ||||
case BIO_READ: | case BIO_READ: | ||||
case BIO_WRITE: | case BIO_WRITE: | ||||
case BIO_DELETE: | case BIO_DELETE: | ||||
break; | break; | ||||
case BIO_SPEEDUP: | |||||
case BIO_FLUSH: | case BIO_FLUSH: | ||||
g_raid3_flush(sc, bp); | g_raid3_flush(sc, bp); | ||||
return; | return; | ||||
case BIO_GETATTR: | case BIO_GETATTR: | ||||
default: | default: | ||||
g_io_deliver(bp, EOPNOTSUPP); | g_io_deliver(bp, EOPNOTSUPP); | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,131 Lines • Show Last 20 Lines |