diff options
author | phk <phk@FreeBSD.org> | 2003-04-22 19:31:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-22 19:31:00 +0000 |
commit | aba647cbf42e6b3b15b69e7da7862d1ca33a544e (patch) | |
tree | 90f37272fe883d121756c35481364c42256c2551 /lib/libgeom | |
parent | c74c9e9b4c44ad80e3099cd176a50e5f2430bc38 (diff) | |
download | FreeBSD-src-aba647cbf42e6b3b15b69e7da7862d1ca33a544e.zip FreeBSD-src-aba647cbf42e6b3b15b69e7da7862d1ca33a544e.tar.gz |
Collapse the meta arguments into normal arguments, trying to distinguish
just makes our own life harder.
Diffstat (limited to 'lib/libgeom')
-rw-r--r-- | lib/libgeom/geom_ctl.c | 37 | ||||
-rw-r--r-- | lib/libgeom/libgeom.h | 2 |
2 files changed, 1 insertions, 38 deletions
diff --git a/lib/libgeom/geom_ctl.c b/lib/libgeom/geom_ctl.c index e28c91f..c3d9ee5 100644 --- a/lib/libgeom/geom_ctl.c +++ b/lib/libgeom/geom_ctl.c @@ -65,10 +65,7 @@ gctl_dump(struct gctl_req *req, FILE *f) fprintf(f, " error:\tNULL\n"); for (i = 0; i < req->narg; i++) { ap = &req->arg[i]; - if (ap->name != NULL) - fprintf(f, " param:\t\"%s\"", ap->name); - else - fprintf(f, " meta:\t@%jd", (intmax_t)ap->offset); + fprintf(f, " param:\t\"%s\"", ap->name); fprintf(f, " [%s%s", ap->flag & GCTL_PARAM_RD ? "R" : "", ap->flag & GCTL_PARAM_WR ? "W" : ""); @@ -205,38 +202,6 @@ gctl_rw_param(struct gctl_req *req, const char *name, int len, void* value) ap->len = strlen(value) + 1; } -void -gctl_ro_meta(struct gctl_req *req, off_t offset, u_int len, const void* value) -{ - struct gctl_req_arg *ap; - - if (req == NULL || req->error != NULL) - return; - ap = gctl_new_arg(req); - if (ap == NULL) - return; - ap->value = __DECONST(void *, value); - ap->flag = GCTL_PARAM_RD; - ap->offset = offset; - ap->len = len; -} - -void -gctl_rw_meta(struct gctl_req *req, off_t offset, u_int len, void* value) -{ - struct gctl_req_arg *ap; - - if (req == NULL || req->error != NULL) - return; - ap = gctl_new_arg(req); - if (ap == NULL) - return; - ap->value = value; - ap->flag = GCTL_PARAM_RW; - ap->offset = offset; - ap->len = len; -} - const char * gctl_issue(struct gctl_req *req) { diff --git a/lib/libgeom/libgeom.h b/lib/libgeom/libgeom.h index 8b1c2e8..83082e7 100644 --- a/lib/libgeom/libgeom.h +++ b/lib/libgeom/libgeom.h @@ -137,8 +137,6 @@ void gctl_dump(struct gctl_req *req, FILE *f); void gctl_free(struct gctl_req *req); struct gctl_req *gctl_get_handle(enum gctl_request req); const char *gctl_issue(struct gctl_req *req); -void gctl_ro_meta(struct gctl_req *req, off_t offset, u_int len, const void* val); -void gctl_rw_meta(struct gctl_req *req, off_t offset, u_int len, void* val); void gctl_ro_param(struct gctl_req *req, const char *name, int len, const void* val); void gctl_rw_param(struct gctl_req *req, const char *name, int len, void* val); |