summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ctl.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-22 19:42:05 +0000
committerphk <phk@FreeBSD.org>2003-04-22 19:42:05 +0000
commit817cb6ca1f585f03fdd44cea0be5889a751e703a (patch)
treedf477f2fa42ca52ce42546a41f88a877d539675a /sys/geom/geom_ctl.c
parentaba647cbf42e6b3b15b69e7da7862d1ca33a544e (diff)
downloadFreeBSD-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.c12
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" : "",
OpenPOWER on IntegriCloud