/linux/fs/bcachefs/ |
H A D | sb-members.c | 140 prt_printf(err, "device %u: too many buckets (got %llu, max %u)", in validate_member() 147 prt_printf(err, "device %u: not enough buckets (got %llu, max %u)", in validate_member() 154 prt_printf(err, "device %u: bucket size %u smaller than block size %u", in validate_member() 161 prt_printf(err, "device %u: bucket size %u smaller than btree node size %llu", in validate_member() 167 prt_printf(err, "device %u: invalid btree_bitmap_shift %u", i, m.btree_bitmap_shift); in validate_member() 187 prt_printf(out, "Device:\t%u\n", i); in member_to_text() 191 prt_printf(out, "Label:\t"); in member_to_text() 196 prt_printf(out, "%s (%u)", in member_to_text() 199 prt_printf(out, "(bad disk labels section)"); in member_to_text() 201 prt_printf(out, "(none)"); in member_to_text() [all …]
|
H A D | super-io.c | 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() [all …]
|
H A D | disk_groups.c | 41 prt_printf(err, "disk %u has invalid label %u (have %u)", in bch2_sb_disk_groups_validate() 47 prt_printf(err, "disk %u has deleted label %u", i, group_id); in bch2_sb_disk_groups_validate() 63 prt_printf(err, "label %u empty", i); in bch2_sb_disk_groups_validate() 78 prt_printf(err, "duplicate label %llu.%.*s", in bch2_sb_disk_groups_validate() 100 prt_printf(out, " "); in bch2_disk_groups_to_text() 103 prt_printf(out, "[deleted]"); in bch2_disk_groups_to_text() 107 prt_printf(out, "[parent %d devs", g->entries[i].parent); in bch2_disk_groups_to_text() 109 prt_printf(out, " %s", ca->name); in bch2_disk_groups_to_text() 110 prt_printf(out, "]"); in bch2_disk_groups_to_text() 131 prt_printf(out, " "); in bch2_sb_disk_groups_to_text() [all …]
|
H A D | journal_sb.c | 43 prt_printf(err, "journal bucket at sector 0"); in bch2_sb_journal_validate() 48 prt_printf(err, "journal bucket %llu before first bucket %u", in bch2_sb_journal_validate() 54 prt_printf(err, "journal bucket %llu past end of device (nbuckets %llu)", in bch2_sb_journal_validate() 61 prt_printf(err, "duplicate journal buckets %llu", b[i]); in bch2_sb_journal_validate() 77 prt_printf(out, "Buckets: "); in bch2_sb_journal_to_text() 79 prt_printf(out, " %llu", le64_to_cpu(journal->buckets[i])); in bch2_sb_journal_to_text() 125 prt_printf(err, "journal buckets entry with bad nr: %llu+%llu", in bch2_sb_journal_v2_validate() 137 prt_printf(err, "journal bucket at sector 0"); in bch2_sb_journal_v2_validate() 142 prt_printf(err, "journal bucket %llu before first bucket %u", in bch2_sb_journal_v2_validate() 148 prt_printf(err, "journal bucket %llu past end of device (nbuckets %llu)", in bch2_sb_journal_v2_validate() [all …]
|
H A D | bkey_methods.c | 72 prt_printf(out, "%llu", le64_to_cpu(ck.v->cookie)); in key_type_cookie_to_text() 97 prt_printf(out, "datalen %u: %*phN", in key_type_inline_data_to_text() 258 prt_printf(out, "POS_MIN"); in bch2_bpos_to_text() 260 prt_printf(out, "POS_MAX"); in bch2_bpos_to_text() 262 prt_printf(out, "SPOS_MAX"); in bch2_bpos_to_text() 265 prt_printf(out, "U64_MAX"); in bch2_bpos_to_text() 267 prt_printf(out, "%llu", pos.inode); in bch2_bpos_to_text() 268 prt_printf(out, ":"); in bch2_bpos_to_text() 270 prt_printf(out, "U64_MAX"); in bch2_bpos_to_text() 272 prt_printf(out, "%llu", pos.offset); in bch2_bpos_to_text() [all …]
|
H A D | journal.c | 56 prt_printf(out, "seq:\t%llu\n", seq); in bch2_journal_buf_to_text() 59 prt_printf(out, "refcount:\t%u\n", journal_state_count(s, i)); in bch2_journal_buf_to_text() 61 prt_printf(out, "size:\t"); in bch2_journal_buf_to_text() 65 prt_printf(out, "expires:\t"); in bch2_journal_buf_to_text() 66 prt_printf(out, "%li jiffies\n", buf->expires - jiffies); in bch2_journal_buf_to_text() 68 prt_printf(out, "flags:\t"); in bch2_journal_buf_to_text() 97 prt_printf(out, "last buf %s\n", journal_entry_is_open(j) ? "open" : "closed"); in bch2_journal_bufs_to_text() 586 prt_printf(&buf, "seq %llu\n", journal_cur_seq(j)); in __journal_res_get() 1551 prt_printf(out, "flags:\t"); in __bch2_journal_debug_to_text() 1554 prt_printf(out, "dirty journal entries:\t%llu/%llu\n", fifo_used(&j->pin), j->pin.size); in __bch2_journal_debug_to_text() [all …]
|
H A D | alloc_foreground.c | 485 prt_printf(&buf, "dev\t%s (%u)\n", ca->name, ca->dev_idx); in trace_bucket_alloc2() 486 prt_printf(&buf, "watermark\t%s\n", bch2_watermarks[watermark]); in trace_bucket_alloc2() 487 prt_printf(&buf, "data type\t%s\n", __bch2_data_types[data_type]); in trace_bucket_alloc2() 488 prt_printf(&buf, "blocking\t%u\n", cl != NULL); in trace_bucket_alloc2() 489 prt_printf(&buf, "free\t%llu\n", usage->d[BCH_DATA_free].buckets); in trace_bucket_alloc2() 490 prt_printf(&buf, "avail\t%llu\n", dev_buckets_free(ca, *usage, watermark)); in trace_bucket_alloc2() 491 prt_printf(&buf, "copygc_wait\t%lu/%lli\n", in trace_bucket_alloc2() 494 prt_printf(&buf, "seen\t%llu\n", s->buckets_seen); in trace_bucket_alloc2() 495 prt_printf(&buf, "open\t%llu\n", s->skipped_open); in trace_bucket_alloc2() 496 prt_printf(&buf, "need journal commit\t%llu\n", s->skipped_need_journal_commit); in trace_bucket_alloc2() [all …]
|
H A D | opts.c | 105 prt_printf(out, "(unknown %s %u)", type, idx); in prt_str_opt_boundscheck() 296 prt_printf(err, "%s: too small (min %llu)", in bch2_opt_validate() 303 prt_printf(err, "%s: too big (max %llu)", in bch2_opt_validate() 310 prt_printf(err, "%s: not a multiple of 512", in bch2_opt_validate() 317 prt_printf(err, "%s: must be a power of two", in bch2_opt_validate() 343 prt_printf(err, "%s: must be bool", opt->attr.name); in bch2_opt_parse() 353 prt_printf(err, "%s: required value", in bch2_opt_parse() 363 prt_printf(err, "%s: must be a number", in bch2_opt_parse() 370 prt_printf(err, "%s: required value", in bch2_opt_parse() 378 prt_printf(err, "%s: invalid selection", in bch2_opt_parse() [all …]
|
H A D | debug.c | 194 prt_printf(out, "error getting device to read from: invalid device\n"); in bch2_btree_node_ondisk_to_text() 200 prt_printf(out, "error getting device to read from: not online\n"); in bch2_btree_node_ondisk_to_text() 206 prt_printf(out, "memory allocation failure\n"); in bch2_btree_node_ondisk_to_text() 220 prt_printf(out, "IO error reading btree node: %s\n", bch2_err_str(ret)); in bch2_btree_node_ondisk_to_text() 235 prt_printf(out, "unknown checksum type at offset %u: %llu\n", in bch2_btree_node_ondisk_to_text() 244 prt_printf(out, "invalid checksum\n"); in bch2_btree_node_ondisk_to_text() 260 prt_printf(out, "unknown checksum type at offset %u: %llu\n", in bch2_btree_node_ondisk_to_text() 269 prt_printf(out, "invalid checksum"); in bch2_btree_node_ondisk_to_text() 278 prt_printf(out, " offset %u version %u, journal seq %llu\n", in bch2_btree_node_ondisk_to_text() 476 prt_printf(out, "%px ", b); in bch2_cached_btree_node_to_text() [all …]
|
H A D | quota.c | 28 prt_printf(err, "wrong size (got %zu should be %zu)", in bch2_sb_quota_validate() 43 prt_printf(out, "%s: flags %llx", in bch2_sb_quota_to_text() 48 prt_printf(out, " %s timelimit %u warnlimit %u", in bch2_sb_quota_to_text() 82 prt_printf(out, "%s hardlimit %llu softlimit %llu", in bch2_quota_to_text() 99 prt_printf(out, "i_fieldmask\t%x\n", i->i_fieldmask); in qc_info_to_text() 100 prt_printf(out, "i_flags\t%u\n", i->i_flags); in qc_info_to_text() 101 prt_printf(out, "i_spc_timelimit\t%u\n", i->i_spc_timelimit); in qc_info_to_text() 102 prt_printf(out, "i_ino_timelimit\t%u\n", i->i_ino_timelimit); in qc_info_to_text() 103 prt_printf(out, "i_rt_spc_timelimit\t%u\n", i->i_rt_spc_timelimit); in qc_info_to_text() 104 prt_printf(out, "i_spc_warnlimit\t%u\n", i->i_spc_warnlimit); in qc_info_to_text() [all …]
|
H A D | sysfs.c | 104 prt_printf(out, fmt "\n", __VA_ARGS__); \ 197 prt_printf(out, "%s\t%li\n", bch2_write_refs[i], atomic_long_read(&c->writes[i])); in bch2_write_refs_to_text() 262 prt_printf(out, "type\tcompressed\runcompressed\raverage extent size\r\n"); in bch2_compression_stats_to_text() 299 prt_printf(out, ": "); in bch2_gc_gens_pos_to_text() 301 prt_printf(out, "\n"); in bch2_gc_gens_pos_to_text() 310 prt_printf(out, "hidden:\t\t%llu\n", b.hidden); in bch2_fs_usage_base_to_text() 311 prt_printf(out, "btree:\t\t%llu\n", b.btree); in bch2_fs_usage_base_to_text() 312 prt_printf(out, "data:\t\t%llu\n", b.data); in bch2_fs_usage_base_to_text() 313 prt_printf(out, "cached:\t%llu\n", b.cached); in bch2_fs_usage_base_to_text() 314 prt_printf(out, "reserved:\t\t%llu\n", b.reserved); in bch2_fs_usage_base_to_text() [all …]
|
H A D | replicas.c | 52 prt_printf(out, ": %u [", e->nr_devs); in bch2_replicas_entry_v0_to_text() 54 prt_printf(out, i ? " %u" : "%u", e->devs[i]); in bch2_replicas_entry_v0_to_text() 55 prt_printf(out, "]"); in bch2_replicas_entry_v0_to_text() 63 prt_printf(out, ": %u/%u [", e->nr_required, e->nr_devs); in bch2_replicas_entry_to_text() 65 prt_printf(out, i ? " %u" : "%u", e->devs[i]); in bch2_replicas_entry_to_text() 66 prt_printf(out, "]"); in bch2_replicas_entry_to_text() 74 prt_printf(err, "no devices in entry "); in bch2_replicas_entry_sb_validate() 80 prt_printf(err, "bad nr_required in entry "); in bch2_replicas_entry_sb_validate() 87 prt_printf(err, "invalid device %u in entry ", r->devs[i]); in bch2_replicas_entry_sb_validate() 102 prt_printf(err, "no devices in entry "); in bch2_replicas_entry_validate() [all …]
|
H A D | backpointers.c | 45 prt_printf(out, "bucket=%llu:%llu:%u ", bucket.inode, bucket.offset, bucket_offset); in bch2_backpointer_to_text() 48 …prt_printf(out, "sector=%llu:%llu ", bp.k->p.inode, bp.k->p.offset >> MAX_EXTENT_COMPRESS_RATIO_SH… in bch2_backpointer_to_text() 52 prt_printf(out, " suboffset=%u len=%u gen=%u pos=", in bch2_backpointer_to_text() 98 prt_printf(&buf, "existing backpointer found when inserting "); in backpointer_mod_err() 103 prt_printf(&buf, "found "); in backpointer_mod_err() 107 prt_printf(&buf, "for "); in backpointer_mod_err() 112 prt_printf(&buf, "backpointer not found when deleting\n"); in backpointer_mod_err() 115 prt_printf(&buf, "searching for "); in backpointer_mod_err() 119 prt_printf(&buf, "got "); in backpointer_mod_err() 123 prt_printf(&buf, "for "); in backpointer_mod_err() [all …]
|
H A D | sb-errors.c | 18 prt_printf(out, "(unknown error %u)", id); in bch2_sb_error_id_to_text() 40 prt_printf(err, "entry with count 0 (id "); in bch2_sb_errors_validate() 42 prt_printf(err, ")"); in bch2_sb_errors_validate() 49 prt_printf(err, "entries out of order"); in bch2_sb_errors_validate()
|
H A D | btree_cache.c | 1009 prt_printf(&buf, in btree_bad_header() 1020 prt_printf(&buf, "\nmax "); in btree_bad_header() 1399 prt_printf(out, "(unknown btree %u)", btree); in bch2_btree_id_to_text() 1406 prt_printf(out, " level=%u", level); in bch2_btree_id_level_to_text() 1413 prt_printf(out, " level %u/", level); in __bch2_btree_pos_to_text() 1416 prt_printf(out, "%u", r->level); in __bch2_btree_pos_to_text() 1418 prt_printf(out, "(unknown)"); in __bch2_btree_pos_to_text() 1419 prt_printf(out, "\n "); in __bch2_btree_pos_to_text() 1437 prt_printf(out, "l %u ", b->c.level); in bch2_btree_node_to_text() 1439 prt_printf(out, " - "); in bch2_btree_node_to_text() [all …]
|
H A D | extents.c | 231 prt_printf(out, "seq %llx written %u min_key %s", in bch2_btree_ptr_v2_to_text() 237 prt_printf(out, " "); in bch2_btree_ptr_v2_to_text() 425 prt_printf(out, "generation %u replicas %u", in bch2_reservation_to_text() 1096 prt_printf(out, "ptr: %u:%llu gen %u%s", ptr->dev, in bch2_extent_ptr_to_text() 1103 prt_printf(out, "ptr: %u:%llu:%u gen %u", in bch2_extent_ptr_to_text() 1106 prt_printf(out, " d=%u", ca->mi.durability); in bch2_extent_ptr_to_text() 1113 prt_printf(out, " stale"); in bch2_extent_ptr_to_text() 1115 prt_printf(out, " invalid"); in bch2_extent_ptr_to_text() 1123 prt_printf(out, "crc: c_size %u size %u offset %u nonce %u csum ", in bch2_extent_crc_unpacked_to_text() 1128 prt_printf(out, " %0llx:%0llx ", crc->csum.hi, crc->csum.lo); in bch2_extent_crc_unpacked_to_text() [all …]
|
H A D | io_misc.c | 119 prt_printf(&buf, "fallocate error: %s", bch2_err_str(ret)); in bch2_extent_fallocate() 222 prt_printf(out, "subvol=%u", le32_to_cpu(op.v->subvol)); in bch2_logged_op_truncate_to_text() 223 prt_printf(out, " inum=%llu", le64_to_cpu(op.v->inum)); in bch2_logged_op_truncate_to_text() 224 prt_printf(out, " new_i_size=%llu", le64_to_cpu(op.v->new_i_size)); in bch2_logged_op_truncate_to_text() 314 prt_printf(out, "subvol=%u", le32_to_cpu(op.v->subvol)); in bch2_logged_op_finsert_to_text() 315 prt_printf(out, " inum=%llu", le64_to_cpu(op.v->inum)); in bch2_logged_op_finsert_to_text() 316 prt_printf(out, " dst_offset=%lli", le64_to_cpu(op.v->dst_offset)); in bch2_logged_op_finsert_to_text() 317 prt_printf(out, " src_offset=%llu", le64_to_cpu(op.v->src_offset)); in bch2_logged_op_finsert_to_text()
|
H A D | movinggc.c | 302 prt_printf(out, "running:\t%u\n", c->copygc_running); in bch2_copygc_wait_to_text() 303 prt_printf(out, "copygc_wait:\t%llu\n", c->copygc_wait); in bch2_copygc_wait_to_text() 304 prt_printf(out, "copygc_wait_at:\t%llu\n", c->copygc_wait_at); in bch2_copygc_wait_to_text() 306 prt_printf(out, "Currently waiting for:\t"); in bch2_copygc_wait_to_text() 311 prt_printf(out, "Currently waiting since:\t"); in bch2_copygc_wait_to_text() 317 prt_printf(out, "Currently calculated wait:\t"); in bch2_copygc_wait_to_text()
|
H A D | journal_seq_blacklist.c | 177 prt_printf(err, "entry %u start >= end (%llu >= %llu)", in bch2_sb_journal_seq_blacklist_validate() 185 prt_printf(err, "entry %u out of order with next entry (%llu > %llu)", in bch2_sb_journal_seq_blacklist_validate() 205 prt_printf(out, " "); in bch2_sb_journal_seq_blacklist_to_text() 207 prt_printf(out, "%llu-%llu", in bch2_sb_journal_seq_blacklist_to_text()
|
H A D | sb-clean.c | 122 prt_printf(&buf1, "(none)"); in bch2_verify_superblock_clean() 127 prt_printf(&buf2, "(none)"); in bch2_verify_superblock_clean() 218 prt_printf(err, "wrong size (got %zu should be %zu)", in bch2_sb_clean_validate() 243 prt_printf(out, "flags: %x\n", le32_to_cpu(clean->flags)); in bch2_sb_clean_to_text() 244 prt_printf(out, "journal_seq: %llu\n", le64_to_cpu(clean->journal_seq)); in bch2_sb_clean_to_text()
|
H A D | checksum.c | 456 prt_printf(&buf, "checksum error in %s() (memory corruption or bug?)\n" in bch2_rechecksum_bio() 500 prt_printf(err, "wrong size (got %zu should be %zu)", in bch2_sb_crypt_validate() 506 prt_printf(err, "bad kdf type %llu", BCH_CRYPT_KDF_TYPE(crypt)); in bch2_sb_crypt_validate() 518 prt_printf(out, "KFD: %llu\n", BCH_CRYPT_KDF_TYPE(crypt)); in bch2_sb_crypt_to_text() 519 prt_printf(out, "scrypt n: %llu\n", BCH_KDF_SCRYPT_N(crypt)); in bch2_sb_crypt_to_text() 520 prt_printf(out, "scrypt r: %llu\n", BCH_KDF_SCRYPT_R(crypt)); in bch2_sb_crypt_to_text() 521 prt_printf(out, "scrypt p: %llu\n", BCH_KDF_SCRYPT_P(crypt)); in bch2_sb_crypt_to_text() 592 prt_printf(&key_description, "bcachefs:"); in bch2_request_key() 620 prt_printf(&key_description, "bcachefs:"); in bch2_revoke_key()
|
H A D | btree_key_cache.c | 823 prt_printf(out, "keys:\t%lu\r\n", atomic_long_read(&bc->nr_keys)); in bch2_btree_key_cache_to_text() 824 prt_printf(out, "dirty:\t%lu\r\n", atomic_long_read(&bc->nr_dirty)); in bch2_btree_key_cache_to_text() 825 prt_printf(out, "table size:\t%u\r\n", bc->table.tbl->size); in bch2_btree_key_cache_to_text() 827 prt_printf(out, "shrinker:\n"); in bch2_btree_key_cache_to_text() 828 prt_printf(out, "requested_to_free:\t%lu\r\n", bc->requested_to_free); in bch2_btree_key_cache_to_text() 829 prt_printf(out, "freed:\t%lu\r\n", bc->freed); in bch2_btree_key_cache_to_text() 830 prt_printf(out, "skipped_dirty:\t%lu\r\n", bc->skipped_dirty); in bch2_btree_key_cache_to_text() 831 prt_printf(out, "skipped_accessed:\t%lu\r\n", bc->skipped_accessed); in bch2_btree_key_cache_to_text() 832 prt_printf(out, "skipped_lock_fail:\t%lu\r\n", bc->skipped_lock_fail); in bch2_btree_key_cache_to_text() 834 prt_printf(out, "pending:\t%zu\r\n", per_cpu_sum(bc->nr_pending)); in bch2_btree_key_cache_to_text()
|
H A D | nocow_locking.c | 110 prt_printf(out, "(%u empty entries)\n", nr_zero); in bch2_nocow_locks_to_text() 117 prt_printf(out, ": %s %u ", v < 0 ? "copy" : "update", abs(v)); in bch2_nocow_locks_to_text() 124 prt_printf(out, "(%u empty entries)\n", nr_zero); in bch2_nocow_locks_to_text()
|
H A D | error.c | 343 prt_printf(out, bch2_log_msg(c, "")); in __bch2_fsck_err() 489 prt_printf(&buf, "invalid bkey in %s", in __bch2_bkey_fsck_err() 493 prt_printf(&buf, " journal seq=%llu offset=%u", in __bch2_bkey_fsck_err() 498 prt_printf(&buf, " level=%u: ", from.level); in __bch2_bkey_fsck_err() 542 prt_printf(out, "inum %llu:%llu", inum.subvol, inum.inum); in bch2_inum_err_msg_trans() 551 prt_printf(out, " offset %llu: ", offset); in bch2_inum_offset_err_msg_trans()
|
H A D | inode.c | 530 prt_printf(out, "\n"); in __bch2_inode_unpacked_to_text() 532 prt_printf(out, "mode=%o\n", inode->bi_mode); in __bch2_inode_unpacked_to_text() 536 prt_printf(out, "(%x)\n", inode->bi_flags); in __bch2_inode_unpacked_to_text() 538 prt_printf(out, "journal_seq=%llu\n", inode->bi_journal_seq); in __bch2_inode_unpacked_to_text() 539 prt_printf(out, "hash_seed=%llx\n", inode->bi_hash_seed); in __bch2_inode_unpacked_to_text() 540 prt_printf(out, "hash_type="); in __bch2_inode_unpacked_to_text() 543 prt_printf(out, "bi_size=%llu\n", inode->bi_size); in __bch2_inode_unpacked_to_text() 544 prt_printf(out, "bi_sectors=%llu\n", inode->bi_sectors); in __bch2_inode_unpacked_to_text() 545 prt_printf(out, "bi_version=%llu\n", inode->bi_version); in __bch2_inode_unpacked_to_text() 548 prt_printf(out, #_name "=%llu\n", (u64) inode->_name); in __bch2_inode_unpacked_to_text() [all …]
|