Lines Matching refs:out
89 static void bch2_sb_disk_groups_to_text(struct printbuf *out, in bch2_sb_disk_groups_to_text() argument
102 prt_printf(out, " "); in bch2_sb_disk_groups_to_text()
105 prt_printf(out, "[deleted]"); in bch2_sb_disk_groups_to_text()
107 prt_printf(out, "[parent %llu name %s]", in bch2_sb_disk_groups_to_text()
336 static void __bch2_disk_path_to_text(struct printbuf *out, struct bch_disk_groups_cpu *g, in __bch2_disk_path_to_text() argument
365 prt_printf(out, "%.*s", (int) sizeof(e->label), e->label); in __bch2_disk_path_to_text()
367 prt_printf(out, "."); in __bch2_disk_path_to_text()
371 prt_printf(out, "invalid label %u", v); in __bch2_disk_path_to_text()
374 void bch2_disk_groups_to_text(struct printbuf *out, struct bch_fs *c) in bch2_disk_groups_to_text() argument
376 bch2_printbuf_make_room(out, 4096); in bch2_disk_groups_to_text()
378 out->atomic++; in bch2_disk_groups_to_text()
383 prt_printf(out, "%2u: ", i); in bch2_disk_groups_to_text()
386 prt_printf(out, "[deleted]"); in bch2_disk_groups_to_text()
390 __bch2_disk_path_to_text(out, g, i); in bch2_disk_groups_to_text()
392 prt_printf(out, " devs"); in bch2_disk_groups_to_text()
395 prt_printf(out, " %s", ca->name); in bch2_disk_groups_to_text()
397 prt_newline(out); in bch2_disk_groups_to_text()
400 out->atomic--; in bch2_disk_groups_to_text()
403 void bch2_disk_path_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_disk_path_to_text() argument
405 out->atomic++; in bch2_disk_path_to_text()
407 __bch2_disk_path_to_text(out, rcu_dereference(c->disk_groups), v), in bch2_disk_path_to_text()
408 --out->atomic; in bch2_disk_path_to_text()
411 void bch2_disk_path_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_disk_path_to_text_sb() argument
443 prt_printf(out, "%.*s", (int) sizeof(g->label), g->label); in bch2_disk_path_to_text_sb()
445 prt_printf(out, "."); in bch2_disk_path_to_text_sb()
449 prt_printf(out, "invalid label %u", v); in bch2_disk_path_to_text_sb()
521 void bch2_target_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_target_to_text() argument
527 prt_printf(out, "none"); in bch2_target_to_text()
530 out->atomic++; in bch2_target_to_text()
537 prt_printf(out, "/dev/%s", ca->name); in bch2_target_to_text()
539 prt_printf(out, "offline device %u", t.dev); in bch2_target_to_text()
541 prt_printf(out, "invalid device %u", t.dev); in bch2_target_to_text()
543 out->atomic--; in bch2_target_to_text()
547 bch2_disk_path_to_text(out, c, t.group); in bch2_target_to_text()
554 static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_target_to_text_sb() argument
560 prt_printf(out, "none"); in bch2_target_to_text_sb()
566 prt_printf(out, "Device "); in bch2_target_to_text_sb()
567 pr_uuid(out, m.uuid.b); in bch2_target_to_text_sb()
568 prt_printf(out, " (%u)", t.dev); in bch2_target_to_text_sb()
570 prt_printf(out, "Bad device %u", t.dev); in bch2_target_to_text_sb()
575 bch2_disk_path_to_text_sb(out, sb, t.group); in bch2_target_to_text_sb()
582 void bch2_opt_target_to_text(struct printbuf *out, in bch2_opt_target_to_text() argument
588 bch2_target_to_text(out, c, v); in bch2_opt_target_to_text()
590 bch2_target_to_text_sb(out, sb, v); in bch2_opt_target_to_text()