Lines Matching defs:req

48 static void raid3_main(struct gctl_req *req, unsigned f);
49 static void raid3_clear(struct gctl_req *req);
50 static void raid3_dump(struct gctl_req *req);
51 static void raid3_label(struct gctl_req *req);
119 raid3_main(struct gctl_req *req, unsigned flags)
126 name = gctl_get_ascii(req, "verb");
128 gctl_error(req, "No '%s' argument.", "verb");
132 raid3_label(req);
134 raid3_clear(req);
136 raid3_dump(req);
138 gctl_error(req, "Unknown command: %s.", name);
142 raid3_label(struct gctl_req *req)
152 nargs = gctl_get_int(req, "nargs");
154 gctl_error(req, "Too few arguments.");
158 gctl_error(req, "Invalid number of components.");
164 str = gctl_get_ascii(req, "arg0");
173 if (gctl_get_int(req, "noautosync"))
175 if (gctl_get_int(req, "nofailsync"))
177 round_robin = gctl_get_int(req, "round_robin");
180 verify = gctl_get_int(req, "verify");
184 gctl_error(req, "Both '%c' and '%c' options given.", 'r', 'w');
187 hardcode = gctl_get_int(req, "hardcode");
194 sectorsize = gctl_get_intmax(req, "sectorsize");
196 str = gctl_get_ascii(req, "arg%d", i);
200 gctl_error(req, "Can't get informations about %s: %s.",
217 gctl_error(req, "The blocksize is too big.");
225 str = gctl_get_ascii(req, "arg%d", i);
228 gctl_error(req, "Can't store metadata on %s: %s.", str,
238 str = gctl_get_ascii(req, "arg%d", i);
268 gctl_error(req, "Not fully done.");
277 raid3_clear(struct gctl_req *req)
282 nargs = gctl_get_int(req, "nargs");
284 gctl_error(req, "Too few arguments.");
289 name = gctl_get_ascii(req, "arg%d", i);
294 gctl_error(req, "Not fully done.");
303 raid3_dump(struct gctl_req *req)
309 nargs = gctl_get_int(req, "nargs");
311 gctl_error(req, "Too few arguments.");
316 name = gctl_get_ascii(req, "arg%d", i);
322 gctl_error(req, "Not fully done.");
328 gctl_error(req, "Not fully done.");