Lines Matching defs:err
120 struct printbuf *err)
127 if (ret < 0 && err)
128 prt_str(err, "fix_errors: invalid selection");
287 int bch2_opt_validate(const struct bch_option *opt, u64 v, struct printbuf *err)
290 if (err)
291 prt_printf(err, "%s: too small (min %llu)",
297 if (err)
298 prt_printf(err, "%s: too big (max %llu)",
304 if (err)
305 prt_printf(err, "%s: not a multiple of 512",
311 if (err)
312 prt_printf(err, "%s: must be a power of two",
318 return opt->fn.validate(v, err);
326 struct printbuf *err)
340 if (err)
341 prt_printf(err, "%s: must be bool", opt->attr.name);
347 prt_printf(err, "%s: required value",
356 if (err)
357 prt_printf(err, "%s: must be a number",
364 prt_printf(err, "%s: required value",
371 if (err)
372 prt_printf(err, "%s: invalid selection",
380 ret = opt->fn.parse(c, val, res, err);
382 if (err)
383 prt_printf(err, "%s: parse error",
389 return bch2_opt_validate(opt, *res, err);
469 struct printbuf err = PRINTBUF;
517 ret = bch2_opt_parse(c, &bch2_opt_table[id], val, &v, &err);
532 pr_err("Invalid mount option %s", err.buf);
537 printbuf_exit(&err);