bcachefs: make fsck spew less
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
741daa5be5
commit
bc230209d3
@@ -375,17 +375,15 @@ fsck_err:
|
|||||||
kfree(d);
|
kfree(d);
|
||||||
return ret;
|
return ret;
|
||||||
err_redo:
|
err_redo:
|
||||||
bch_err(c, "cannot fix dirent by removing trailing garbage %s (%zu)",
|
|
||||||
buf, strlen(buf));
|
|
||||||
|
|
||||||
hash = bch2_dirent_hash_desc.hash_bkey(&h->info, *k);
|
hash = bch2_dirent_hash_desc.hash_bkey(&h->info, *k);
|
||||||
|
|
||||||
if (fsck_err(c, "hash table key at wrong offset: btree %u, offset %llu, "
|
if (fsck_err(c, "cannot fix dirent by removing trailing garbage %s (%zu)\n"
|
||||||
"hashed to %llu chain starts at %llu\n%s",
|
"hash table key at wrong offset: btree %u, offset %llu, "
|
||||||
BTREE_ID_DIRENTS,
|
"hashed to %llu chain starts at %llu\n%s",
|
||||||
k->k->p.offset, hash, h->chain->pos.offset,
|
buf, strlen(buf), BTREE_ID_DIRENTS,
|
||||||
(bch2_bkey_val_to_text(c, bkey_type(0, BTREE_ID_DIRENTS),
|
k->k->p.offset, hash, h->chain->pos.offset,
|
||||||
buf, sizeof(buf), *k), buf))) {
|
(bch2_bkey_val_to_text(c, bkey_type(0, BTREE_ID_DIRENTS),
|
||||||
|
buf, sizeof(buf), *k), buf))) {
|
||||||
ret = hash_redo_key(bch2_dirent_hash_desc,
|
ret = hash_redo_key(bch2_dirent_hash_desc,
|
||||||
h, c, iter, *k, hash);
|
h, c, iter, *k, hash);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Reference in New Issue
Block a user