Track changes in sys/geom
This commit is contained in:
parent
aeded84143
commit
63f0cd928d
@ -71,26 +71,6 @@ thread_sim(void *ptr __unused)
|
||||
rattle();
|
||||
conff("1");
|
||||
sdumpf("2");
|
||||
#if 0
|
||||
g_simdisk_stop("ad0");
|
||||
bp = g_new_bio();
|
||||
bp->bio_cmd = BIO_READ;
|
||||
bp->bio_offset = 0;
|
||||
bp->bio_length = 512;
|
||||
bp->bio_data = g_malloc(512, M_WAITOK);
|
||||
g_dev_request("ad0s1a", bp);
|
||||
rattle();
|
||||
sdumpf("2a");
|
||||
g_simdisk_destroy("ad0");
|
||||
rattle();
|
||||
conff("1");
|
||||
sdumpf("2b");
|
||||
g_simdisk_restart("ad0");
|
||||
rattle();
|
||||
conff("1");
|
||||
sdumpf("2c");
|
||||
|
||||
#endif
|
||||
printf("Done\n");
|
||||
done();
|
||||
return (0);
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/sbuf.h>
|
||||
#include <geom/geom.h>
|
||||
#include <geom/geom_int.h>
|
||||
|
||||
void
|
||||
conff(char *file)
|
||||
@ -99,7 +100,7 @@ thread_event(void *ptr)
|
||||
printf("Running %s\n", tp->name);
|
||||
for (;;) {
|
||||
usleep(100000);
|
||||
g_run_events(tp);
|
||||
g_run_events();
|
||||
tsleep(&g_wait_event, 0, "events", 0);
|
||||
}
|
||||
}
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include <sys/errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <geom/geom.h>
|
||||
#include <geom/geom_int.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
#include <machine/atomic.h>
|
||||
|
@ -49,7 +49,7 @@
|
||||
|
||||
|
||||
static struct g_geom *
|
||||
dev_taste(struct g_class *mp, struct g_provider *pp, struct thread *tp __unused, int insist __unused)
|
||||
dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused)
|
||||
{
|
||||
struct g_geom *gp;
|
||||
struct g_consumer *cp;
|
||||
@ -70,7 +70,7 @@ dev_taste(struct g_class *mp, struct g_provider *pp, struct thread *tp __unused,
|
||||
|
||||
|
||||
static void
|
||||
g_dev_orphan(struct g_consumer *cp, struct thread *tp __unused)
|
||||
g_dev_orphan(struct g_consumer *cp)
|
||||
{
|
||||
struct g_geom *gp;
|
||||
|
||||
@ -141,7 +141,7 @@ g_dev_done(struct bio *bp)
|
||||
if (bp->bio_from->biocount > 0)
|
||||
return;
|
||||
g_topology_lock();
|
||||
g_dev_orphan(bp->bio_from, NULL);
|
||||
g_dev_orphan(bp->bio_from);
|
||||
g_topology_unlock();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user