Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/mirror/g_mirror.c
Show First 20 Lines • Show All 1,899 Lines • ▼ Show 20 Lines | if (bp->bio_from->geom == sc->sc_sync.ds_geom && | ||||
g_mirror_sync_request(bp); /* READ */ | g_mirror_sync_request(bp); /* READ */ | ||||
} else if (bp->bio_to != sc->sc_provider) { | } else if (bp->bio_to != sc->sc_provider) { | ||||
if ((bp->bio_cflags & G_MIRROR_BIO_FLAG_REGULAR) != 0) | if ((bp->bio_cflags & G_MIRROR_BIO_FLAG_REGULAR) != 0) | ||||
g_mirror_regular_request(bp); | g_mirror_regular_request(bp); | ||||
else if ((bp->bio_cflags & G_MIRROR_BIO_FLAG_SYNC) != 0) | else if ((bp->bio_cflags & G_MIRROR_BIO_FLAG_SYNC) != 0) | ||||
g_mirror_sync_request(bp); /* WRITE */ | g_mirror_sync_request(bp); /* WRITE */ | ||||
else { | else { | ||||
KASSERT(0, | KASSERT(0, | ||||
("Invalid request cflags=0x%hhx to=%s.", | ("Invalid request cflags=0x%hx to=%s.", | ||||
bp->bio_cflags, bp->bio_to->name)); | bp->bio_cflags, bp->bio_to->name)); | ||||
} | } | ||||
} else { | } else { | ||||
g_mirror_register_request(bp); | g_mirror_register_request(bp); | ||||
} | } | ||||
G_MIRROR_DEBUG(5, "%s: I'm here 9.", __func__); | G_MIRROR_DEBUG(5, "%s: I'm here 9.", __func__); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,437 Lines • Show Last 20 Lines |