diff options
author | phk <phk@FreeBSD.org> | 2002-10-24 21:14:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-24 21:14:05 +0000 |
commit | 5817ad865887107d41b108bc5a96c15703dd9a6e (patch) | |
tree | 333972c99638921201ba40e7d6ac49a0a4618499 /tools/regression/geom | |
parent | 96c09148caba1a26c358a10b6c958d8de2a4da42 (diff) | |
download | FreeBSD-src-5817ad865887107d41b108bc5a96c15703dd9a6e.zip FreeBSD-src-5817ad865887107d41b108bc5a96c15703dd9a6e.tar.gz |
Resync with kernel.
Diffstat (limited to 'tools/regression/geom')
-rw-r--r-- | tools/regression/geom/geom_sim.h | 9 | ||||
-rw-r--r-- | tools/regression/geom/geom_simdisk.c | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/tools/regression/geom/geom_sim.h b/tools/regression/geom/geom_sim.h index 56a5be8..d3c48ac 100644 --- a/tools/regression/geom/geom_sim.h +++ b/tools/regression/geom/geom_sim.h @@ -66,6 +66,8 @@ struct bio { void *bio_data; const char *bio_attribute; /* BIO_GETATTR/BIO_SETATTR */ int bio_error; + u_int bio_children; /* Number of spawned bios */ + struct bio *bio_linkage; int bio_flags; @@ -137,17 +139,20 @@ void g_simdisk_stop(char *name); void g_simdisk_restart(char *name); #define DECLARE_GEOM_CLASS(class, name) \ +void name##_init(void); \ void \ name##_init(void) \ { \ g_add_class(&class); \ } -void g_pc98_init(void); -void g_sunlabel_init(void); +void g_aes_init(void); void g_bsd_init(void); void g_mbr_init(void); void g_mbrext_init(void); +void g_sunlabel_init(void); +void g_pc98_init(void); + void *thread_sim(void *ptr); diff --git a/tools/regression/geom/geom_simdisk.c b/tools/regression/geom/geom_simdisk.c index c2757dd..39b27bb 100644 --- a/tools/regression/geom/geom_simdisk.c +++ b/tools/regression/geom/geom_simdisk.c @@ -104,16 +104,12 @@ g_simdisk_start(struct bio *bp) return; } if (bp->bio_cmd == BIO_GETATTR) { - if (g_handleattr_int(bp, "GEOM::sectorsize", sc->sectorsize)) - return; if (g_handleattr_int(bp, "GEOM::fwsectors", sc->fwsectors)) return; if (g_handleattr_int(bp, "GEOM::fwheads", sc->fwheads)) return; if (g_handleattr_int(bp, "GEOM::fwcylinders", sc->fwcylinders)) return; - if (g_handleattr_off_t(bp, "GEOM::mediasize", sc->mediasize)) - return; } g_io_deliver(bp, EOPNOTSUPP); } @@ -139,7 +135,8 @@ g_simdisk_create(char *name, struct simdisk_softc *sc) gp->access = g_std_access; pp = g_new_providerf(gp, "%s", name); - pp->mediasize=sc->mediasize; + pp->mediasize = sc->mediasize; + pp->sectorsize = sc->sectorsize; g_error_provider(pp, 0); unit++; g_topology_unlock(); |