Lines Matching refs:req

50 static void raid3_main(struct gctl_req *req, unsigned f);
51 static void raid3_clear(struct gctl_req *req);
52 static void raid3_dump(struct gctl_req *req);
53 static void raid3_label(struct gctl_req *req);
121 raid3_main(struct gctl_req *req, unsigned flags)
128 name = gctl_get_ascii(req, "verb");
130 gctl_error(req, "No '%s' argument.", "verb");
134 raid3_label(req);
136 raid3_clear(req);
138 raid3_dump(req);
140 gctl_error(req, "Unknown command: %s.", name);
144 raid3_label(struct gctl_req *req)
155 nargs = gctl_get_int(req, "nargs");
157 gctl_error(req, "Too few arguments.");
161 gctl_error(req, "Invalid number of components.");
167 str = gctl_get_ascii(req, "arg0");
176 if (gctl_get_int(req, "noautosync"))
178 if (gctl_get_int(req, "nofailsync"))
180 round_robin = gctl_get_int(req, "round_robin");
183 verify = gctl_get_int(req, "verify");
187 gctl_error(req, "Both '%c' and '%c' options given.", 'r', 'w');
190 hardcode = gctl_get_int(req, "hardcode");
197 sectorsize = gctl_get_intmax(req, "sectorsize");
199 str = gctl_get_ascii(req, "arg%d", i);
203 gctl_error(req, "Can't get informations about %s: %s.",
220 gctl_error(req, "The blocksize is too big.");
228 str = gctl_get_ascii(req, "arg%d", i);
231 gctl_error(req, "Can't store metadata on %s: %s.", str,
241 str = gctl_get_ascii(req, "arg%d", i);
271 gctl_error(req, "Not fully done.");
280 raid3_clear(struct gctl_req *req)
285 nargs = gctl_get_int(req, "nargs");
287 gctl_error(req, "Too few arguments.");
292 name = gctl_get_ascii(req, "arg%d", i);
297 gctl_error(req, "Not fully done.");
306 raid3_dump(struct gctl_req *req)
312 nargs = gctl_get_int(req, "nargs");
314 gctl_error(req, "Too few arguments.");
319 name = gctl_get_ascii(req, "arg%d", i);
325 gctl_error(req, "Not fully done.");
331 gctl_error(req, "Not fully done.");