Skip to content

Commit 68aaa63

Browse files
author
Kent Overstreet
committed
bcachefs: print op->nonce on data update inconsistency
"nonce inconstancy" is popping up again, causing us to go emergency read-only. This one looks less serious, i.e. specific to the encryption path and not indicative of a data corruption bug. But we'll need more info to track it down. Signed-off-by: Kent Overstreet <[email protected]>
1 parent b04974f commit 68aaa63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/data_update.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans,
340340
struct printbuf buf = PRINTBUF;
341341

342342
prt_str(&buf, "about to insert invalid key in data update path");
343+
prt_printf(&buf, "\nop.nonce: %u", m->op.nonce);
343344
prt_str(&buf, "\nold: ");
344345
bch2_bkey_val_to_text(&buf, c, old);
345346
prt_str(&buf, "\nk: ");

0 commit comments

Comments
 (0)