Lines Matching defs:bp
273 g_part_get_physpath_done(struct bio *bp)
281 pbp = bp->bio_parent;
287 if (bp->bio_error == 0) {
290 len = strlcat(bp->bio_data, "/", bp->bio_length);
291 if (len < bp->bio_length) {
292 end = bp->bio_data + len;
293 remainder = bp->bio_length - len;
297 g_std_done(bp);
2182 g_part_start(struct bio *bp)
2194 pp = bp->bio_to;
2199 G_PART_TRACE((G_T_BIO, "%s: cmd=%d, provider=%s", __func__, bp->bio_cmd,
2204 g_io_deliver(bp, ENXIO);
2208 switch(bp->bio_cmd) {
2212 if (bp->bio_offset >= pp->mediasize) {
2213 g_io_deliver(bp, EIO);
2216 bp2 = g_clone_bio(bp);
2218 g_io_deliver(bp, ENOMEM);
2230 if (g_handleattr_int(bp, "GEOM::fwheads", table->gpt_heads))
2232 if (g_handleattr_int(bp, "GEOM::fwsectors", table->gpt_sectors))
2234 if (g_handleattr_int(bp, "PART::isleaf", table->gpt_isleaf))
2236 if (g_handleattr_int(bp, "PART::depth", table->gpt_depth))
2238 if (g_handleattr_str(bp, "PART::scheme",
2241 if (g_handleattr_str(bp, "PART::type",
2244 if (!strcmp("GEOM::physpath", bp->bio_attribute)) {
2248 if (!strcmp("GEOM::kerneldump", bp->bio_attribute)) {
2255 if ((bp->bio_from == NULL ||
2256 bp->bio_from->geom->class != &g_part_class) &&
2258 g_io_deliver(bp, ENODEV);
2264 gkd = (struct g_kerneldump *)bp->bio_data;
2266 g_io_deliver(bp, EIO);
2275 g_io_deliver(bp, EOPNOTSUPP);
2279 bp2 = g_clone_bio(bp);
2281 g_io_deliver(bp, ENOMEM);