diff options
author | phk <phk@FreeBSD.org> | 2004-12-12 10:09:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-12 10:09:05 +0000 |
commit | 35b3c9fdfbd8e466654ebad62b044a7d3c01f3b7 (patch) | |
tree | c331a8f51b025987771bf29e5baf7455e29185d9 /sys/geom/geom.h | |
parent | cfac934dde18f8d08432e5509b2dd827eb77be2c (diff) | |
download | FreeBSD-src-35b3c9fdfbd8e466654ebad62b044a7d3c01f3b7.zip FreeBSD-src-35b3c9fdfbd8e466654ebad62b044a7d3c01f3b7.tar.gz |
Pass the file->flags down to geom ioctl handlers.
Reject certain ioctls if write permission is not indicated.
Bump geom API version.
Reported by: Ruben de Groot <mail25@bzerk.org>
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 3ae296b..c93053a 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -65,7 +65,7 @@ typedef int g_ctl_config_geom_t (struct gctl_req *, struct g_geom *gp, const cha typedef void g_init_t (struct g_class *mp); typedef void g_fini_t (struct g_class *mp); typedef struct g_geom * g_taste_t (struct g_class *, struct g_provider *, int flags); -typedef int g_ioctl_t(struct g_provider *pp, u_long cmd, void *data, struct thread *td); +typedef int g_ioctl_t(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread *td); #define G_TF_NORMAL 0 #define G_TF_INSIST 1 #define G_TF_TRANSPARENT 2 @@ -111,7 +111,8 @@ struct g_class { }; #define G_VERSION_00 0x19950323 -#define G_VERSION G_VERSION_00 +#define G_VERSION_01 0x20041207 /* add fflag to g_ioctl_t */ +#define G_VERSION G_VERSION_01 /* * The g_geom is an instance of a g_class. |