diff options
author | phk <phk@FreeBSD.org> | 2002-09-27 21:37:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-27 21:37:11 +0000 |
commit | bd4b8491399a8df6b7aea34dc30845289f3bc0f8 (patch) | |
tree | 02c4bf4995be772bfd0fd8a2f45388a5e079ecb5 /sys/geom/geom_pc98.c | |
parent | 577f8b1e73497700b0f10db6cf84bd6db96cd62c (diff) | |
download | FreeBSD-src-bd4b8491399a8df6b7aea34dc30845289f3bc0f8.zip FreeBSD-src-bd4b8491399a8df6b7aea34dc30845289f3bc0f8.tar.gz |
Add the new g_slice_config() call, which can add/delete/change a slice,
with support for trying, doing and forcing.
This will eventually replace g_slice_addslice() which gets changed from
grabbing topology to requing it in this commit as well.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_pc98.c')
-rw-r--r-- | sys/geom/geom_pc98.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c index fc3978e..4fcdf4b 100644 --- a/sys/geom/geom_pc98.c +++ b/sys/geom/geom_pc98.c @@ -155,16 +155,15 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags) u = g_dec_le2(buf + 512 + 14 + i * 32); if (u == 0) continue; - printf("Index: %d\n", i); g_hexdump(buf+512 + i * 32, 32); start = v * fwsect * fwhead * sectorsize; length = (1 + u - v) * fwsect * fwhead * sectorsize; - printf("c%d - c%d (%jx - %jx) = %s\n", - v, u, (uintmax_t)start, (uintmax_t)length, buf + 512 + 16 + i * 32); npart++; + g_topology_lock(); pp2 = g_slice_addslice(gp, i, start, length, "%ss%d", pp->name, 1 + i); + g_topology_unlock(); g_error_provider(pp2, 0); } break; |