diff options
author | phk <phk@FreeBSD.org> | 2003-04-22 19:42:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-22 19:42:05 +0000 |
commit | 817cb6ca1f585f03fdd44cea0be5889a751e703a (patch) | |
tree | df477f2fa42ca52ce42546a41f88a877d539675a /sys/geom/geom_ctl.c | |
parent | aba647cbf42e6b3b15b69e7da7862d1ca33a544e (diff) | |
download | FreeBSD-src-817cb6ca1f585f03fdd44cea0be5889a751e703a.zip FreeBSD-src-817cb6ca1f585f03fdd44cea0be5889a751e703a.tar.gz |
Collapse meta arguments into regular arguments, the distinction is
more trouble than it is worth.
Diffstat (limited to 'sys/geom/geom_ctl.c')
-rw-r--r-- | sys/geom/geom_ctl.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c index 0457972..ab50552 100644 --- a/sys/geom/geom_ctl.c +++ b/sys/geom/geom_ctl.c @@ -151,13 +151,8 @@ gctl_copyin(struct gctl_req *req) !useracc(ap[i].value, ap[i].len, ap[i].flag & GCTL_PARAM_RW)) error = gctl_error(req, "no access to param data"); - if (ap[i].name == NULL) { - if (req->reqt->meta) - continue; - error = gctl_error(req, - "request does not take metadata arguments"); + if (error) break; - } p = NULL; if (ap[i].nlen < 1 || ap[i].nlen > SPECNAMELEN) { error = gctl_error(req, "wrong param name length"); @@ -205,10 +200,7 @@ gctl_dump(struct gctl_req *req) } for (i = 0; i < req->narg; i++) { ap = &req->arg[i]; - if (ap->name != NULL) - printf(" param:\t\"%s\"", ap->name); - else - printf(" meta:\t@%jd", (intmax_t)ap->offset); + printf(" param:\t\"%s\"", ap->name); printf(" [%s%s%d] = ", ap->flag & GCTL_PARAM_RD ? "R" : "", ap->flag & GCTL_PARAM_WR ? "W" : "", |