diff options
author | phk <phk@FreeBSD.org> | 2003-04-02 20:41:18 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-02 20:41:18 +0000 |
commit | cedf04c4758318e15e1a5924e4226bb5a9699107 (patch) | |
tree | bb0413612f4b063a82d75d5551149f4526dbc56d /sys/geom/geom_bsd.c | |
parent | 021eeb20207634119a2920f756b6eba04148bbf9 (diff) | |
download | FreeBSD-src-cedf04c4758318e15e1a5924e4226bb5a9699107.zip FreeBSD-src-cedf04c4758318e15e1a5924e4226bb5a9699107.tar.gz |
Change events to have an array of "void *" references, and give the
event posting functions varargs to fill these.
Attribute g_call_me() to appropriate g_geom's where necessary.
Add a flag argument to g_call_me() methods which will be used to signal
cancellation of events in the future.
This commit should be a no-op.
Diffstat (limited to 'sys/geom/geom_bsd.c')
-rw-r--r-- | sys/geom/geom_bsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 6e14333..39f4222 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -479,7 +479,7 @@ g_bsd_try(struct g_geom *gp, struct g_slicer *gsp, struct g_consumer *cp, int se */ static void -g_bsd_ioctl(void *arg) +g_bsd_ioctl(void *arg, int flag __unused) { struct bio *bp; struct g_geom *gp; @@ -608,7 +608,7 @@ g_bsd_diocbsdbb(dev_t dev, u_long cmd __unused, caddr_t data, int fflag __unused * footshooting as best we can. */ static void -g_bsd_hotwrite(void *arg) +g_bsd_hotwrite(void *arg, int flag __unused) { struct bio *bp; struct g_geom *gp; @@ -682,7 +682,7 @@ g_bsd_start(struct bio *bp) /* We do not allow deleting our hot spots */ return (EPERM); case BIO_WRITE: - g_call_me(g_bsd_hotwrite, bp); + g_call_me(g_bsd_hotwrite, bp, gp, NULL); return (EJUSTRETURN); case BIO_GETATTR: if (g_handleattr(bp, "BSD::labelsum", ms->labelsum, @@ -723,7 +723,7 @@ g_bsd_start(struct bio *bp) * some I/O requests. Ask the event-handler to schedule * us in a less restricted environment. */ - error = g_call_me(g_bsd_ioctl, bp); + error = g_call_me(g_bsd_ioctl, bp, gp, NULL); if (error) g_io_deliver(bp, error); /* |