Lines Matching refs:prt_printf
55 prt_printf(out, "%u.%u: %s", BCH_VERSION_MAJOR(v), BCH_VERSION_MINOR(v), str); in bch2_version_to_text()
193 prt_printf(&buf, ": superblock too big: want %zu but have %llu", new_bytes, max_bytes); in bch2_sb_realloc()
287 prt_printf(out, "Not a bcachefs superblock layout"); in validate_sb_layout()
292 prt_printf(out, "Invalid superblock layout type %u", in validate_sb_layout()
298 prt_printf(out, "Invalid superblock layout: no superblocks"); in validate_sb_layout()
303 prt_printf(out, "Invalid superblock layout: too many superblocks"); in validate_sb_layout()
308 prt_printf(out, "Invalid superblock layout: max_size_bits too high"); in validate_sb_layout()
320 prt_printf(out, "Invalid superblock layout: superblocks overlap\n" in validate_sb_layout()
384 prt_printf(out, "Filesystem has incompatible features"); in bch2_sb_validate()
390 prt_printf(out, "Filesystem has incompatible version"); in bch2_sb_validate()
397 prt_printf(out, "Block size too big (got %u, max %u)", in bch2_sb_validate()
403 prt_printf(out, "Bad user UUID (got zeroes)"); in bch2_sb_validate()
408 prt_printf(out, "Bad internal UUID (got zeroes)"); in bch2_sb_validate()
414 prt_printf(out, "Bad number of member devices %u (max %u)", in bch2_sb_validate()
420 prt_printf(out, "Bad dev_idx (got %u, nr_devices %u)", in bch2_sb_validate()
427 prt_printf(out, "Invalid time precision: %u (min 1, max %lu)", in bch2_sb_validate()
437 prt_printf(out, "Invalid version_incompat "); in bch2_sb_validate()
480 prt_printf(out, "Invalid option "); in bch2_sb_validate()
496 prt_printf(out, "Invalid superblock: optional field with size 0 (type %u)", in bch2_sb_validate()
502 prt_printf(out, "Invalid superblock: optional field extends past end of superblock (type %u)", in bch2_sb_validate()
511 prt_printf(out, "Invalid superblock: member info area missing"); in bch2_sb_validate()
530 prt_printf(out, "Invalid superblock: member seq %llu != sb seq %llu", in bch2_sb_validate()
692 prt_printf(err, "IO error: %i", ret); in read_one_super()
712 prt_printf(err, "Invalid superblock: too big (got %zu bytes, layout max %llu)", in read_one_super()
727 prt_printf(err, "unknown checksum type %llu", BCH_SB_CSUM_TYPE(sb->sb)); in read_one_super()
765 prt_printf(&err, "error allocating memory for sb_name"); in __bch2_read_super()
793 prt_printf(&err, "error opening %s: %s", path, bch2_err_str(ret)); in __bch2_read_super()
800 prt_printf(&err, "error allocating memory for superblock"); in __bch2_read_super()
805 prt_printf(&err, "dynamic fault"); in __bch2_read_super()
817 prt_printf(&err2, "bcachefs (%s): error reading default superblock: %s\n", in __bch2_read_super()
841 prt_printf(&err, "IO error: %i", ret); in __bch2_read_super()
875 prt_printf(&err, "block size (%u) smaller than device block size (%u)", in __bch2_read_super()
1060 prt_printf(&buf, "attempting to write superblock that wasn't version downgraded ("); in bch2_write_super()
1089 prt_printf(&buf, in bch2_write_super()
1109 prt_printf(&buf, in bch2_write_super()
1239 prt_printf(err, "field too small (%zu < %u)", vstruct_bytes(f), 88); in bch2_sb_ext_validate()
1251 prt_printf(out, "Recovery passes required:\t"); in bch2_sb_ext_to_text()
1260 prt_printf(out, "Errors to silently fix:\t"); in bch2_sb_ext_to_text()
1268 prt_printf(out, "Btrees with missing data:\t"); in bch2_sb_ext_to_text()
1304 prt_printf(err, "Invalid superblock section %s: %s", in bch2_sb_field_validate()
1333 prt_printf(out, "%s", bch2_sb_fields[type]); in bch2_sb_field_to_text()
1335 prt_printf(out, "(unknown field %u)", type); in bch2_sb_field_to_text()
1337 prt_printf(out, " (size %zu):", vstruct_bytes(f)); in bch2_sb_field_to_text()
1347 prt_printf(out, "Type: %u", l->layout_type); in bch2_sb_layout_to_text()
1354 prt_printf(out, "Nr superblocks: %u", l->nr_superblocks); in bch2_sb_layout_to_text()
1361 prt_printf(out, "%llu", le64_to_cpu(l->sb_offset[i])); in bch2_sb_layout_to_text()
1372 prt_printf(out, "External UUID:\t"); in bch2_sb_to_text()
1376 prt_printf(out, "Internal UUID:\t"); in bch2_sb_to_text()
1380 prt_printf(out, "Magic number:\t"); in bch2_sb_to_text()
1384 prt_printf(out, "Device index:\t%u\n", sb->dev_idx); in bch2_sb_to_text()
1386 prt_printf(out, "Label:\t"); in bch2_sb_to_text()
1388 prt_printf(out, "(none)"); in bch2_sb_to_text()
1390 prt_printf(out, "%.*s", (int) sizeof(sb->label), sb->label); in bch2_sb_to_text()
1393 prt_printf(out, "Version:\t"); in bch2_sb_to_text()
1397 prt_printf(out, "Incompatible features allowed:\t"); in bch2_sb_to_text()
1401 prt_printf(out, "Incompatible features in use:\t"); in bch2_sb_to_text()
1405 prt_printf(out, "Version upgrade complete:\t"); in bch2_sb_to_text()
1409 prt_printf(out, "Oldest version on disk:\t"); in bch2_sb_to_text()
1413 prt_printf(out, "Created:\t"); in bch2_sb_to_text()
1417 prt_printf(out, "(not set)"); in bch2_sb_to_text()
1420 prt_printf(out, "Sequence number:\t"); in bch2_sb_to_text()
1421 prt_printf(out, "%llu", le64_to_cpu(sb->seq)); in bch2_sb_to_text()
1424 prt_printf(out, "Time of last write:\t"); in bch2_sb_to_text()
1428 prt_printf(out, "Superblock size:\t"); in bch2_sb_to_text()
1434 prt_printf(out, "Clean:\t%llu\n", BCH_SB_CLEAN(sb)); in bch2_sb_to_text()
1435 prt_printf(out, "Devices:\t%u\n", bch2_sb_nr_devices(sb)); in bch2_sb_to_text()
1437 prt_printf(out, "Sections:\t"); in bch2_sb_to_text()
1444 prt_printf(out, "Features:\t"); in bch2_sb_to_text()
1448 prt_printf(out, "Compat features:\t"); in bch2_sb_to_text()
1453 prt_printf(out, "Options:"); in bch2_sb_to_text()
1465 prt_printf(out, "%s:\t", opt->attr.name); in bch2_sb_to_text()
1477 prt_printf(out, "layout:"); in bch2_sb_to_text()