Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/raid/g_raid.c
Show First 20 Lines • Show All 1,105 Lines • ▼ Show 20 Lines | |||||
// bp->bio_to->error, bp->bio_to->name)); | // bp->bio_to->error, bp->bio_to->name)); | ||||
G_RAID_LOGREQ(3, bp, "Request received."); | G_RAID_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: | ||||
case BIO_FLUSH: | case BIO_FLUSH: | ||||
case BIO_SPEEDUP: | |||||
break; | break; | ||||
case BIO_GETATTR: | case BIO_GETATTR: | ||||
if (!strcmp(bp->bio_attribute, "GEOM::candelete")) | if (!strcmp(bp->bio_attribute, "GEOM::candelete")) | ||||
g_raid_candelete(sc, bp); | g_raid_candelete(sc, bp); | ||||
else if (!strcmp(bp->bio_attribute, "GEOM::kerneldump")) | else if (!strcmp(bp->bio_attribute, "GEOM::kerneldump")) | ||||
g_raid_kerneldump(sc, bp); | g_raid_kerneldump(sc, bp); | ||||
else | else | ||||
g_io_deliver(bp, EOPNOTSUPP); | g_io_deliver(bp, EOPNOTSUPP); | ||||
▲ Show 20 Lines • Show All 1,451 Lines • Show Last 20 Lines |