Lines Matching defs:req

47 gv_list(struct g_geom *gp, struct gctl_req *req)
58 argc = gctl_get_paraml(req, "argc", sizeof(*argc));
61 gctl_error(req, "no arguments given");
65 flags = gctl_get_paraml(req, "flags", sizeof(*flags));
67 gctl_error(req, "no flags given");
76 cmd = gctl_get_param(req, "cmd", NULL);
78 gctl_error(req, "no command given");
87 arg = gctl_get_param(req, buf, NULL);
109 gctl_error(req, "unknown object '%s'",
115 gv_ld(gp, req, sb);
117 gv_lv(gp, req, sb);
119 gv_lp(gp, req, sb);
121 gv_ls(gp, req, sb);
129 arg = gctl_get_param(req, buf, NULL);
134 gctl_error(req, "'%s' is not a drive",
143 gv_ld(gp, req, sb);
150 arg = gctl_get_param(req, buf, NULL);
155 gctl_error(req, "'%s' is not a volume",
164 gv_lv(gp, req, sb);
171 arg = gctl_get_param(req, buf, NULL);
176 gctl_error(req, "'%s' is not a plex",
185 gv_lp(gp, req, sb);
192 arg = gctl_get_param(req, buf, NULL);
197 gctl_error(req, "'%s' is not a subdisk",
206 gv_ls(gp, req, sb);
209 gctl_error(req, "unknown command '%s'", cmd);
212 gctl_set_param(req, "config", sbuf_data(sb), sbuf_len(sb) + 1);
218 gv_lv(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb)
233 flags = gctl_get_paraml(req, "flags", sizeof(*flags));
274 gv_lp(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb)
289 flags = gctl_get_paraml(req, "flags", sizeof(*flags));
364 gv_ls(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb)
379 flags = gctl_get_paraml(req, "flags", sizeof(*flags));
439 gv_ld(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb)
454 flags = gctl_get_paraml(req, "flags", sizeof(*flags));