Open g2p opened 6 days ago
This is where going read-write is coming from:
Thread 1 "bcachefs" hit Breakpoint 3, bch2_fs_read_write_early (c=0x7ffff7cfa000) at libbcachefs/super.c:523
523 {
(gdb) bt
#0 bch2_fs_read_write_early (c=0x7ffff7cfa000) at libbcachefs/super.c:523
#1 0x0000555555742825 in bch2_run_recovery_pass (c=c@entry=0x7ffff7cfa000, pass=pass@entry=BCH_RECOVERY_PASS_set_may_go_rw) at libbcachefs/recovery_passes.c:185
#2 0x0000555555742d1a in bch2_run_recovery_passes (c=c@entry=0x7ffff7cfa000) at libbcachefs/recovery_passes.c:232
#3 0x000055555574105a in bch2_fs_recovery (c=0x7ffff7cfa000) at libbcachefs/recovery.c:859
#4 0x000055555576530d in bch2_fs_start (c=c@entry=0x7ffff7cfa000) at libbcachefs/super.c:1037
#5 0x00005555557688ea in bch2_fs_open (devices=0x555555975750, nr_devices=<optimized out>, opts=...) at libbcachefs/super.c:2071
#6 0x000055555565a048 in cmd_dump (argc=<optimized out>, argv=<optimized out>) at c_src/cmd_dump.c:151
#7 0x000055555564f2e4 in bcachefs::main ()
Somehow make debug
(with CFLAGS+=-DCONFIG_BCACHEFS_DEBUG=y) produced a command that does dump.
Here is the output of dump --verbose:
Apparently bcachefs is confused about going read-write or read-only.
The futex is this: