t 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 401.219748][T12770] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.248924][T12770] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.279763][T12770] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.288634][T12770] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.340755][T12770] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.369566][T12770] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.399781][T12770] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.400294][T12839] loop3: detected capacity change from 0 to 32768 [ 401.428938][T12840] loop0: detected capacity change from 0 to 32768 [ 401.439673][T12770] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.477093][T12770] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.497285][T12770] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.518393][T12770] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.548991][T12770] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.570065][T12770] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.589628][T12770] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.609051][T12770] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.621003][T12844] loop4: detected capacity change from 0 to 32768 [ 401.635335][T12770] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.646221][T12770] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.655534][T12842] loop1: detected capacity change from 0 to 32768 [ 401.686650][T12770] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.707555][T12770] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.717311][T12770] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.728440][T12770] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.737383][T12770] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.741209][T12840] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 401.757748][T12839] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 401.757818][T12839] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 401.760757][T12840] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 401.762715][T12770] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.805779][T12770] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.822245][T12770] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.833199][T12844] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 401.833266][T12844] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 401.853484][T12770] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.863885][T12770] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.872624][T12770] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.885244][T12770] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 401.893898][T12770] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 401.898547][T12842] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 401.920132][T12770] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 401.938170][T12770] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 401.945870][T12842] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 401.987793][T12770] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 402.040281][T12770] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 402.099059][T12844] bcachefs: bch2_fs_get_tree() error: EINVAL [ 402.099212][T12839] bcachefs: bch2_fs_get_tree() error: EINVAL [ 402.113436][T12770] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 402.124152][T12840] bcachefs: bch2_fs_get_tree() error: EINVAL [ 402.165605][T12770] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 402.210251][T12770] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 402.262180][T12770] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 402.325151][T12770] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 402.357936][T12770] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 402.371805][T12842] bcachefs: bch2_fs_get_tree() error: EINVAL [ 402.397624][T12770] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 402.449678][T12770] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 402.458458][T12770] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 402.536778][T12770] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 402.576330][T12770] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 402.590128][T12770] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 402.615085][T12770] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 402.637833][T12770] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 402.689206][T12770] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 402.716178][T12770] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 402.773028][T12770] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 402.809842][T12770] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 402.838918][T12770] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 402.874557][T12770] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 402.901281][T12770] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 402.931776][T12770] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 402.951992][T12770] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 402.982412][T12770] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 403.014464][T12770] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 403.049824][T12770] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 403.088886][T12770] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 403.120113][T12770] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 403.128631][T12770] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 403.190109][T12770] done [ 403.193533][T12770] bcachefs (loop2): going read-write [ 403.241597][T12770] bcachefs (loop2): journal_replay... [ 403.241681][T12770] bcachefs (loop2): bch2_journal_replay(): error erofs_journal_err [ 403.242318][ T12] bcachefs (loop2): bch2_btree_update_start(): error journal_shutdown [ 403.247278][T12770] bcachefs (loop2): bch2_fs_recovery(): error erofs_journal_err [ 403.247293][T12770] bcachefs (loop2): bch2_fs_start(): error starting filesystem erofs_journal_err [ 403.247887][ T6785] bcachefs (loop2): going read-only [ 403.286028][T12770] bcachefs (loop2): shutting down [ 403.287010][ T12] bcachefs (loop2): async_btree_node_rewrite_work(): error journal_shutdown [ 403.345855][T12874] loop4: detected capacity change from 0 to 32768 [ 403.349613][ T6785] bcachefs (loop2): flushing journal and stopping allocators, journal seq 10 [ 403.391666][ T6785] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 10 [ 403.433766][T12874] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 403.444944][ T6785] bcachefs (loop2): unclean shutdown complete, journal seq 10 [ 403.452780][T12874] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 403.453566][T12877] loop0: detected capacity change from 0 to 32768 [ 403.490115][ T6785] bcachefs (loop2): finished waiting for writes to stop [ 403.497105][ T6785] bcachefs (loop2): done going read-only, filesystem not clean [ 403.535819][T12770] bcachefs (loop2): shutdown complete [ 403.631278][T12878] loop3: detected capacity change from 0 to 32768 [ 403.678613][T12880] loop1: detected capacity change from 0 to 32768 [ 403.813448][T12874] bcachefs: bch2_fs_get_tree() error: EINVAL [ 403.825996][T12877] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 403.848629][T12877] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 403.857038][T12877] bcachefs (loop0): Version upgrade required: [ 403.857038][T12877] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 403.857038][T12877] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 403.857038][T12877] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 403.978227][T12877] bcachefs (loop0): error validating btree node on loop0 at btree extents level 0/0 [ 403.978247][T12877] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 403.978261][T12877] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 403.995971][T12878] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 404.002904][T12877] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 404.034522][T12877] bcachefs (loop0): flagging btree extents lost data [ 404.041395][T12877] bcachefs (loop0): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 404.053204][T12877] bcachefs (loop0): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 404.068547][T12878] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 404.095554][T12877] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 404.109679][T12877] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 404.109712][T12877] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 404.109725][T12877] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 404.148287][T12880] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 404.150160][T12877] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 404.150160][T12877] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 404.186384][T12880] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 404.277770][T12877] bcachefs (loop0): scan_for_btree_nodes... [ 404.367674][T12877] bcachefs (loop0): btree node scan found 7 nodes after overwrites [ 404.399576][T12877] done [ 404.402401][T12877] bcachefs (loop0): check_topology... [ 404.403810][T12770] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 404.418179][T12878] bcachefs: bch2_fs_get_tree() error: EINVAL [ 404.427599][T12877] bcachefs (loop0): btree root extents unreadable, must recover from scan [ 404.454904][T12877] bcachefs (loop0): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 404.466004][T12880] bcachefs: bch2_fs_get_tree() error: EINVAL [ 404.549621][T12877] bcachefs (loop0): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 404.651608][ T42] bcachefs (loop0): error validating btree node on loop0 at btree extents level 0/0 [ 404.651639][ T42] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 404.651654][ T42] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 404.719920][T12877] Topology repair: unreadable btree node at [ 404.719940][T12877] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 404.762605][T12877] empty interior btree node at btree=extents level=1 [ 404.762623][T12877] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 404.783235][T12877] bcachefs (loop0): empty btree root extents [ 404.791898][T12877] done [ 404.794707][T12877] bcachefs (loop0): accounting_read... done [ 404.813012][T12877] bcachefs (loop0): alloc_read... done [ 404.818682][T12877] bcachefs (loop0): stripes_read... done [ 404.838629][T12877] bcachefs (loop0): snapshots_read... done [ 404.848709][T12877] bcachefs (loop0): check_allocations... [ 404.850840][T12877] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 404.850859][T12877] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 404.954727][T12877] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 404.954748][T12877] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 405.064113][T12877] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 405.064134][T12877] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 405.141634][T12877] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 405.141656][T12877] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 405.212478][T12912] loop4: detected capacity change from 0 to 32768 [ 405.239744][T12877] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 405.239764][T12877] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 405.301766][T12877] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.310281][T12877] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 405.321252][T12877] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.329629][T12877] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 405.339550][T12877] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.342037][T12912] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 405.388007][T12877] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 405.429213][T12912] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 405.453831][T12915] loop3: detected capacity change from 0 to 32768 [ 405.497199][T12877] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.510885][T12877] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 405.549994][T12877] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.589710][T12877] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 405.600828][T12916] loop1: detected capacity change from 0 to 32768 [ 405.624362][T12877] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.636942][T12915] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 405.637031][T12915] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 405.727866][T12877] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 405.766612][T12912] bcachefs: bch2_fs_get_tree() error: EINVAL [ 405.816435][T12918] loop2: detected capacity change from 0 to 32768 [ 405.847519][T12877] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.856599][T12877] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 405.867277][T12877] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 405.876855][T12877] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 405.886997][T12877] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 405.896135][T12877] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 405.906900][T12877] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 405.910717][T12916] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 405.935706][T12877] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 405.945037][T12916] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 405.975788][T12915] bcachefs: bch2_fs_get_tree() error: EINVAL [ 405.990884][T12877] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 406.020459][T12877] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 406.049747][T12877] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing 2025/03/20 07:11:35 executed programs: 623 [ 406.070246][T12877] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 406.071236][T12918] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 406.129547][T12877] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 406.138439][T12877] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 406.180293][T12918] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 406.239180][T12877] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 406.274462][T12877] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 406.326364][T12877] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 406.356492][T12916] bcachefs: bch2_fs_get_tree() error: EINVAL [ 406.409184][T12877] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 406.460011][T12877] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.468627][T12877] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.515211][T12877] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.545489][T12918] bcachefs: bch2_fs_get_tree() error: EINVAL [ 406.591781][T12877] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.620346][T12877] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.643492][T12877] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.666354][T12877] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.696088][T12877] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.706626][T12877] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.753478][T12948] loop4: detected capacity change from 0 to 32768 [ 406.779242][T12877] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.822454][T12877] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.880501][T12877] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.908096][T12948] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 406.908179][T12948] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 406.957405][T12877] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.966084][T12877] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.976095][T12877] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 406.985027][T12877] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 406.996049][T12877] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 407.005030][T12877] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 407.015516][T12877] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 407.024305][T12877] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 407.079598][T12877] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 407.099294][T12877] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 407.130317][T12877] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 407.139018][T12877] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 407.177126][T12948] bcachefs: bch2_fs_get_tree() error: EINVAL [ 407.189901][T12877] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 407.225434][T12877] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 407.253398][T12950] loop3: detected capacity change from 0 to 32768 [ 407.287368][T12877] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 407.308771][T12877] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 407.355628][T12877] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 407.389890][T12877] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 407.429271][T12877] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 407.440127][T12877] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 407.448905][T12877] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 407.455335][T12950] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 407.489653][T12877] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 407.543787][T12950] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 407.586797][T12961] loop2: detected capacity change from 0 to 32768 [ 407.607441][T12877] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 407.619701][T12877] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 407.628256][T12877] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 407.638882][T12877] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 407.647864][T12877] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 407.679498][T12877] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 407.688026][T12877] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 407.701867][T12877] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 407.744327][T12877] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 407.780148][T12877] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 407.789816][T12952] loop1: detected capacity change from 0 to 32768 [ 407.828320][T12961] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 407.844984][T12877] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 407.859565][T12961] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 407.911151][T12952] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 407.911213][T12952] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 407.927539][T12950] bcachefs: bch2_fs_get_tree() error: EINVAL [ 408.030185][T12877] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 408.063504][T12877] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 408.110054][T12877] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 408.118574][T12877] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 408.139288][T12877] done [ 408.164968][T12877] bcachefs (loop0): going read-write [ 408.171236][T12961] bcachefs: bch2_fs_get_tree() error: EINVAL [ 408.203900][T12877] bcachefs (loop0): journal_replay... [ 408.203990][T12877] bcachefs (loop0): bch2_journal_replay(): error erofs_journal_err [ 408.211538][ T12] bcachefs (loop0): bch2_btree_update_start(): error journal_shutdown [ 408.225757][T12877] bcachefs (loop0): bch2_fs_recovery(): error erofs_journal_err [ 408.266896][ T12] bcachefs (loop0): async_btree_node_rewrite_work(): error journal_shutdown [ 408.273530][T12877] bcachefs (loop0): bch2_fs_start(): error starting filesystem erofs_journal_err [ 408.300169][T12877] bcachefs (loop0): shutting down [ 408.305244][T12877] bcachefs (loop0): going read-only [ 408.315650][T12877] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 408.339837][T12952] bcachefs: bch2_fs_get_tree() error: EINVAL [ 408.340075][T12877] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 408.414758][T12970] loop4: detected capacity change from 0 to 32768 [ 408.436447][T12877] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 408.460808][T12877] bcachefs (loop0): finished waiting for writes to stop [ 408.489584][T12877] bcachefs (loop0): done going read-only, filesystem not clean [ 408.568745][T12877] bcachefs (loop0): shutdown complete [ 408.989836][T12994] loop2: detected capacity change from 0 to 32768 [ 409.057707][T12986] loop3: detected capacity change from 0 to 32768 [ 409.148785][T12997] loop1: detected capacity change from 0 to 32768 [ 409.317209][T12970] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 409.323061][T12994] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 409.333398][T12970] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 409.341776][T12994] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 409.372494][T12970] bcachefs (loop4): Version upgrade required: [ 409.372494][T12970] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 409.372494][T12970] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 409.372494][T12970] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 409.448288][T12986] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 409.487482][T12970] bcachefs (loop4): error validating btree node on loop4 at btree extents level 0/0 [ 409.487502][T12970] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 409.487516][T12970] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 409.507833][T12986] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 409.517000][T12997] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 409.562733][T12997] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 409.574685][T12970] bcachefs (loop4): inconsistency detected - emergency read only at journal seq 10 [ 409.603494][T12970] bcachefs (loop4): flagging btree extents lost data [ 409.645662][T12970] bcachefs (loop4): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 409.650143][T12877] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 409.672147][T12970] bcachefs (loop4): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 409.739174][T12970] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 409.768132][T12994] bcachefs: bch2_fs_get_tree() error: EINVAL [ 409.849010][T12970] bcachefs (loop4): error validating btree node at btree alloc level 0/0 [ 409.849032][T12970] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 409.849045][T12970] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 409.888952][T12986] bcachefs: bch2_fs_get_tree() error: EINVAL [ 409.919590][T12970] bcachefs (loop4): btree_node_read_work: rewriting btree node at due to error [ 409.919590][T12970] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 409.960007][T12997] bcachefs: bch2_fs_get_tree() error: EINVAL [ 410.054536][T12970] bcachefs (loop4): scan_for_btree_nodes... [ 410.150437][T12970] bcachefs (loop4): btree node scan found 7 nodes after overwrites [ 410.188051][T12970] done [ 410.198483][T12970] bcachefs (loop4): check_topology... [ 410.204963][T12970] bcachefs (loop4): btree root extents unreadable, must recover from scan [ 410.231974][T12970] bcachefs (loop4): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 410.305874][T12970] bcachefs (loop4): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 410.379226][ T42] bcachefs (loop4): error validating btree node on loop4 at btree extents level 0/0 [ 410.379256][ T42] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 410.379270][ T42] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 410.421453][T12970] Topology repair: unreadable btree node at [ 410.421473][T12970] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 410.445339][T12970] empty interior btree node at btree=extents level=1 [ 410.445358][T12970] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 410.459624][T12970] bcachefs (loop4): empty btree root extents [ 410.465726][T12970] done [ 410.468503][T12970] bcachefs (loop4): accounting_read... done [ 410.512793][T12970] bcachefs (loop4): alloc_read... done [ 410.518469][T12970] bcachefs (loop4): stripes_read... done [ 410.559493][T12970] bcachefs (loop4): snapshots_read... done [ 410.565615][T12970] bcachefs (loop4): check_allocations... [ 410.570369][T12970] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 410.570388][T12970] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 410.637290][T12970] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 410.637312][T12970] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 410.721233][T12970] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 410.721254][T12970] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 410.805559][T12970] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 410.805579][T12970] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 410.855252][T12970] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 410.855273][T12970] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 410.910502][T12970] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 410.939286][T12970] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 410.969933][T12970] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 410.989466][T12970] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.029853][T12970] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.033821][T13021] loop0: detected capacity change from 0 to 32768 [ 411.060927][T13024] loop2: detected capacity change from 0 to 32768 [ 411.067548][T12970] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.084350][T13028] loop1: detected capacity change from 0 to 32768 [ 411.164570][T13026] loop3: detected capacity change from 0 to 32768 [ 411.186690][T12970] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.196127][T12970] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.207531][T12970] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.225092][T12970] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.238341][T12970] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.247161][T12970] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.257343][T12970] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.266626][T12970] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.276785][T12970] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.285345][T12970] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 411.295007][T12970] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 411.308549][T12970] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 411.314535][T13024] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 411.327905][T13024] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 411.338223][T12970] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 411.347560][T12970] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 411.358087][T12970] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 411.358582][T13028] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 411.376610][T12970] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 411.382143][T13021] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 411.396360][T13021] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 411.397363][T13028] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 411.401496][T12970] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 411.438814][T12970] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 411.455035][T12970] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 411.465312][T12970] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 411.482388][T12970] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 411.492234][T12970] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 411.504064][T12970] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 411.513330][T12970] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 411.525143][T12970] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.534311][T12970] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.534348][T13026] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 411.579850][T12970] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.605977][T13026] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 411.672710][T12970] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.689773][T12970] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.701754][T13021] bcachefs: bch2_fs_get_tree() error: EINVAL [ 411.755367][T12970] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.776367][T13024] bcachefs: bch2_fs_get_tree() error: EINVAL [ 411.829534][T12970] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.838396][T13028] bcachefs: bch2_fs_get_tree() error: EINVAL [ 411.844805][T12970] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.879692][T12970] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.896128][T12970] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 411.914233][T13026] bcachefs: bch2_fs_get_tree() error: EINVAL [ 411.925951][T12970] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 411.991940][T12970] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.033779][T12970] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.075598][T12970] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.096077][T12970] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.113739][T12970] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing 2025/03/20 07:11:41 executed programs: 635 [ 412.166806][T12970] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 412.207361][T12970] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 412.232485][T12970] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 412.267300][T12970] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 412.320349][T12970] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 412.349094][T12970] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 412.409694][T12970] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 412.418376][T12970] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 412.458858][T12970] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 412.485025][T12970] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 412.499561][T12970] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 412.527057][T12970] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 412.546241][T12970] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 412.589147][T12970] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 412.628772][T12970] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 412.655198][T12970] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 412.679638][T12970] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 412.710141][T12970] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.718663][T12970] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.765260][T12970] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.785194][T12970] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.809278][T12970] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.840457][T12970] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.864640][T12970] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.885014][T12970] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.914944][T12970] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.929620][T12970] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.960800][T12970] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 412.969322][T12970] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 412.996622][T13059] loop0: detected capacity change from 0 to 32768 [ 413.004625][T13060] loop2: detected capacity change from 0 to 32768 [ 413.085622][T12970] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 413.095970][T13062] loop1: detected capacity change from 0 to 32768 [ 413.116861][T12970] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 413.122276][T13059] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 413.136019][T13059] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 413.147173][T12970] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 413.163992][T13064] loop3: detected capacity change from 0 to 32768 [ 413.223909][T13060] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 413.224263][T13060] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 413.254898][T12970] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 413.266973][T12970] done [ 413.270591][T12970] bcachefs (loop4): going read-write [ 413.278030][ T1339] bcachefs (loop4): bch2_btree_update_start(): error journal_shutdown [ 413.287577][T12970] bcachefs (loop4): journal_replay... [ 413.287715][T12970] bcachefs (loop4): bch2_journal_replay(): error erofs_journal_err [ 413.301793][ T1339] bcachefs (loop4): async_btree_node_rewrite_work(): error journal_shutdown [ 413.311545][T12970] bcachefs (loop4): bch2_fs_recovery(): error erofs_journal_err [ 413.319530][T12970] bcachefs (loop4): bch2_fs_start(): error starting filesystem erofs_journal_err [ 413.328777][ T5994] bcachefs (loop4): going read-only [ 413.330485][T13062] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 413.334592][ T5994] bcachefs (loop4): finished waiting for writes to stop [ 413.350308][T13062] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 413.394723][T12970] bcachefs (loop4): shutting down [ 413.400539][ T5994] bcachefs (loop4): flushing journal and stopping allocators, journal seq 10 [ 413.430074][T13059] bcachefs: bch2_fs_get_tree() error: EINVAL [ 413.438296][T13064] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 413.469558][ T5994] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 10 [ 413.489580][T13064] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 413.509515][ T5994] bcachefs (loop4): unclean shutdown complete, journal seq 10 [ 413.538160][ T5994] bcachefs (loop4): done going read-only, filesystem not clean [ 413.594133][T12970] bcachefs (loop4): shutdown complete [ 413.611843][T13060] bcachefs: bch2_fs_get_tree() error: EINVAL [ 413.971694][T13062] bcachefs: bch2_fs_get_tree() error: EINVAL [ 413.971777][T13064] bcachefs: bch2_fs_get_tree() error: EINVAL [ 414.420289][T13094] loop0: detected capacity change from 0 to 32768 [ 414.511849][T13096] loop2: detected capacity change from 0 to 32768 [ 414.673029][T13099] loop3: detected capacity change from 0 to 32768 [ 414.788257][T13094] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 414.807525][T13094] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 414.827313][T13099] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 414.837570][T13094] bcachefs (loop0): Version upgrade required: [ 414.837570][T13094] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 414.837570][T13094] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 414.837570][T13094] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 414.909342][T13099] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 414.947239][T13096] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 414.959082][T13096] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 415.063933][T12970] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 415.071016][T13094] bcachefs (loop0): error validating btree node on loop0 at btree extents level 0/0 [ 415.071035][T13094] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 415.071049][T13094] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 415.136262][T13094] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 415.148001][T13100] loop1: detected capacity change from 0 to 32768 [ 415.161159][T13099] bcachefs: bch2_fs_get_tree() error: EINVAL [ 415.163841][T13094] bcachefs (loop0): flagging btree extents lost data [ 415.179054][T13094] bcachefs (loop0): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 415.230654][T13094] bcachefs (loop0): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 415.304896][T13096] bcachefs: bch2_fs_get_tree() error: EINVAL [ 415.316154][T13094] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 415.403575][T13100] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 415.417015][T13094] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 415.417036][T13094] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 415.417050][T13094] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 415.420132][T13100] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 415.480732][T13094] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 415.480732][T13094] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 415.636805][T13094] bcachefs (loop0): scan_for_btree_nodes... [ 415.734904][T13100] bcachefs: bch2_fs_get_tree() error: EINVAL [ 415.768255][T13094] bcachefs (loop0): btree node scan found 7 nodes after overwrites [ 415.816801][T13094] done [ 415.826498][T13094] bcachefs (loop0): check_topology... [ 415.827764][T13094] bcachefs (loop0): btree root extents unreadable, must recover from scan [ 415.885698][T13094] bcachefs (loop0): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 415.923952][T13094] bcachefs (loop0): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 415.964383][ T1073] bcachefs (loop0): error validating btree node on loop0 at btree extents level 0/0 [ 415.964413][ T1073] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 415.964428][ T1073] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 416.009709][T13094] Topology repair: unreadable btree node at [ 416.009729][T13094] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 416.117782][T13094] empty interior btree node at btree=extents level=1 [ 416.117800][T13094] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 416.189631][T13094] bcachefs (loop0): empty btree root extents [ 416.216246][T13094] done [ 416.219067][T13094] bcachefs (loop0): accounting_read... done [ 416.236446][T13094] bcachefs (loop0): alloc_read... done [ 416.256720][T13094] bcachefs (loop0): stripes_read... done [ 416.276983][T13094] bcachefs (loop0): snapshots_read... done [ 416.294380][T13136] loop3: detected capacity change from 0 to 32768 [ 416.301068][T13094] bcachefs (loop0): check_allocations... [ 416.317296][T13094] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 416.317317][T13094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 416.372029][T13094] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 416.372051][T13094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 416.404689][T13129] loop4: detected capacity change from 0 to 32768 [ 416.453032][T13136] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 416.453096][T13136] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 416.546642][T13134] loop2: detected capacity change from 0 to 32768 [ 416.556212][T13129] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 416.556278][T13129] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 416.645241][T13134] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 416.645307][T13134] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 416.719952][T13136] bcachefs: bch2_fs_get_tree() error: EINVAL [ 416.747099][T13094] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 416.747122][T13094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 416.866837][T13129] bcachefs: bch2_fs_get_tree() error: EINVAL [ 416.891601][T13094] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 416.891628][T13094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 416.964887][T13134] bcachefs: bch2_fs_get_tree() error: EINVAL [ 417.106727][T13094] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 417.106748][T13094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing 2025/03/20 07:11:46 executed programs: 648 [ 417.200683][T13094] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.247859][T13094] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 417.275964][T13138] loop1: detected capacity change from 0 to 32768 [ 417.296295][T13094] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.335221][T13094] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 417.362040][T13094] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.399287][T13094] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 417.442070][T13094] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.450690][T13094] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 417.460784][T13094] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.469122][T13094] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 417.482928][T13138] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 417.482994][T13138] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 417.586363][T13094] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.639566][T13094] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 417.677617][T13094] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.699552][T13094] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 417.730107][T13094] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 417.738459][T13094] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 417.753766][T13161] loop3: detected capacity change from 0 to 32768 [ 417.829996][T13094] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 417.838767][T13094] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 417.851998][T13138] bcachefs: bch2_fs_get_tree() error: EINVAL [ 417.868282][T13161] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 417.868351][T13161] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 417.999707][T13094] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 418.044929][T13094] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 418.092143][T13094] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 418.129526][T13094] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 418.149209][T13094] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 418.185601][T13094] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 418.211366][T13161] bcachefs: bch2_fs_get_tree() error: EINVAL [ 418.235796][T13167] loop2: detected capacity change from 0 to 32768 [ 418.310288][T13094] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 418.319181][T13094] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 418.324528][T13163] loop4: detected capacity change from 0 to 32768 [ 418.381003][T13094] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 418.399874][T13094] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 418.423677][T13094] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 418.433044][T13094] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 418.444258][T13094] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 418.494551][T13094] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 418.545385][T13094] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 418.571505][T13163] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 418.571573][T13163] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 418.597707][T13167] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 418.597793][T13167] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 418.734948][T13181] loop1: detected capacity change from 0 to 32768 [ 418.759637][T13094] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 418.799786][T13094] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 418.808343][T13094] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 418.834810][T13094] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 418.863522][T13167] bcachefs: bch2_fs_get_tree() error: EINVAL [ 418.870349][T13163] bcachefs: bch2_fs_get_tree() error: EINVAL [ 418.926690][T13094] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 419.000719][T13094] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 419.006539][T13181] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 419.018465][T13181] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 419.037843][T13094] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 419.123881][T13094] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 419.144666][T13094] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 419.170081][T13094] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 419.193737][T13094] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 419.203990][T13094] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 419.235527][T13094] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 419.255842][T13094] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 419.293185][T13094] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 419.313320][T13094] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 419.337661][T13094] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 419.349752][T13181] bcachefs: bch2_fs_get_tree() error: EINVAL [ 419.409755][T13094] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 419.453323][T13094] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 419.484668][T13094] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 419.525226][T13094] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 419.556120][T13094] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 419.586030][T13197] loop3: detected capacity change from 0 to 32768 [ 419.636563][T13094] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 419.669573][T13094] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 419.704917][T13094] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 419.777323][T13094] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 419.788577][T13197] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 419.788644][T13197] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 419.846441][T13207] loop2: detected capacity change from 0 to 32768 [ 419.869852][T13094] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 419.885249][T13094] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 419.912591][T13094] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 419.929827][T13094] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 419.950540][T13094] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 419.967572][T13094] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 419.992099][T13094] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 420.016984][T13207] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 420.017051][T13207] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 420.063058][T13197] bcachefs: bch2_fs_get_tree() error: EINVAL [ 420.073446][T13094] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 420.083591][T13094] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 420.092212][T13094] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 420.109972][T13094] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 420.118697][T13094] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 420.128828][T13094] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 420.137505][T13094] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 420.177423][T13094] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 420.203015][T13094] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 420.241028][T13094] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 420.274136][T13094] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 420.274749][T13209] loop4: detected capacity change from 0 to 32768 [ 420.310822][T13094] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 420.356027][T13094] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 420.376263][T13207] bcachefs: bch2_fs_get_tree() error: EINVAL [ 420.466600][T13094] done [ 420.472336][T13094] bcachefs (loop0): going read-write [ 420.489183][T13209] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 420.535499][T13094] bcachefs (loop0): journal_replay... [ 420.535627][T13094] bcachefs (loop0): bch2_journal_replay(): error erofs_journal_err [ 420.550097][ T1151] bcachefs (loop0): bch2_btree_update_start(): error journal_shutdown [ 420.558525][ T1151] bcachefs (loop0): async_btree_node_rewrite_work(): error journal_shutdown [ 420.568568][T13209] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 420.579853][T13094] bcachefs (loop0): bch2_fs_recovery(): error erofs_journal_err [ 420.609045][T13094] bcachefs (loop0): bch2_fs_start(): error starting filesystem erofs_journal_err [ 420.616319][T13218] loop1: detected capacity change from 0 to 32768 [ 420.619939][ T52] bcachefs (loop0): going read-only [ 420.631733][ T52] bcachefs (loop0): finished waiting for writes to stop [ 420.638770][ T52] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 420.659500][T13094] bcachefs (loop0): shutting down [ 420.659899][ T52] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 420.675129][ T52] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 420.684013][ T52] bcachefs (loop0): done going read-only, filesystem not clean [ 420.767281][T13094] bcachefs (loop0): shutdown complete [ 420.805543][T13209] bcachefs: bch2_fs_get_tree() error: EINVAL [ 421.177139][T13236] loop2: detected capacity change from 0 to 32768 [ 421.277325][T13233] loop3: detected capacity change from 0 to 32768 [ 421.414998][T13243] loop4: detected capacity change from 0 to 32768 [ 421.483147][T13218] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 421.498453][T13218] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 421.513278][T13218] bcachefs (loop1): Version upgrade required: [ 421.513278][T13218] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 421.513278][T13218] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 421.513278][T13218] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 421.624264][T13243] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 421.645083][T13218] bcachefs (loop1): error validating btree node on loop1 at btree extents level 0/0 [ 421.645102][T13218] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 421.645115][T13218] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 421.648259][T13243] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 421.663545][T13233] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 421.707436][T13218] bcachefs (loop1): inconsistency detected - emergency read only at journal seq 10 [ 421.711584][T13236] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 421.726499][T13094] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 421.736738][T13233] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 421.736756][T13218] bcachefs (loop1): flagging btree extents lost data [ 421.746923][T13236] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 421.783203][T13218] bcachefs (loop1): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 421.859558][T13218] bcachefs (loop1): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 421.897921][T13218] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 421.931586][T13218] bcachefs (loop1): error validating btree node at btree alloc level 0/0 [ 421.931607][T13218] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 421.931622][T13218] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 421.986866][T13243] bcachefs: bch2_fs_get_tree() error: EINVAL [ 422.110896][T13233] bcachefs: bch2_fs_get_tree() error: EINVAL [ 422.123055][T13236] bcachefs: bch2_fs_get_tree() error: EINVAL [ 422.123140][T13218] bcachefs (loop1): btree_node_read_work: rewriting btree node at due to error [ 422.123140][T13218] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 2025/03/20 07:11:52 executed programs: 659 [ 422.206507][T13218] bcachefs (loop1): scan_for_btree_nodes... [ 422.326727][T13218] bcachefs (loop1): btree node scan found 7 nodes after overwrites [ 422.375035][T13218] done [ 422.377863][T13218] bcachefs (loop1): check_topology... [ 422.393594][T13218] bcachefs (loop1): btree root extents unreadable, must recover from scan [ 422.449655][T13218] bcachefs (loop1): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 422.535499][T13218] bcachefs (loop1): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 422.613970][ T42] bcachefs (loop1): error validating btree node on loop1 at btree extents level 0/0 [ 422.614001][ T42] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 422.614016][ T42] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 422.664093][T13218] Topology repair: unreadable btree node at [ 422.664114][T13218] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 422.697435][T13218] empty interior btree node at btree=extents level=1 [ 422.697454][T13218] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 422.711517][T13218] bcachefs (loop1): empty btree root extents [ 422.717731][T13218] done [ 422.729330][T13218] bcachefs (loop1): accounting_read... done [ 422.761296][T13218] bcachefs (loop1): alloc_read... done [ 422.768084][T13218] bcachefs (loop1): stripes_read... done [ 422.784122][T13218] bcachefs (loop1): snapshots_read... done [ 422.794254][T13218] bcachefs (loop1): check_allocations... [ 422.802018][T13218] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 422.802040][T13218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 422.882375][T13218] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 422.882400][T13218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 422.986321][T13218] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 422.986342][T13218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 423.062298][T13218] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 423.062331][T13218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 423.110423][T13269] loop0: detected capacity change from 0 to 32768 [ 423.165068][T13274] loop3: detected capacity change from 0 to 32768 [ 423.195192][T13218] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 423.195213][T13218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 423.243864][T13218] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.287282][T13272] loop4: detected capacity change from 0 to 32768 [ 423.294813][T13274] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 423.304587][T13274] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 423.322376][T13218] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 423.339244][T13269] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 423.339310][T13269] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 423.388311][T13218] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.418031][T13276] loop2: detected capacity change from 0 to 32768 [ 423.444553][T13218] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 423.467970][T13218] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.483422][T13218] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 423.495382][T13218] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.506596][T13218] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 423.529120][T13272] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 423.529190][T13272] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 423.555067][T13274] bcachefs: bch2_fs_get_tree() error: EINVAL [ 423.620958][T13218] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.629306][T13218] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 423.652355][T13218] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.663894][T13276] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 423.663958][T13276] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 423.692975][T13272] bcachefs: bch2_fs_get_tree() error: EINVAL [ 423.699815][T13269] bcachefs: bch2_fs_get_tree() error: EINVAL [ 423.849796][T13218] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 423.900992][T13218] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.935577][T13218] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 423.961220][T13218] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 423.990983][T13218] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 424.036352][T13218] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 424.067693][T13218] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 424.104922][T13276] bcachefs: bch2_fs_get_tree() error: EINVAL [ 424.117579][T13218] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 424.152107][T13218] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 424.183191][T13218] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 424.215777][T13218] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 424.250064][T13218] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 424.282597][T13218] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 424.328415][T13218] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 424.353504][T13218] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 424.376376][T13218] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 424.393380][T13218] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 424.418663][T13218] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 424.446363][T13218] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 424.465203][T13218] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 424.513325][T13218] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 424.546764][T13218] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 424.591192][T13218] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 424.626242][T13218] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 424.656530][T13218] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 424.697170][T13218] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 424.730362][T13218] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 424.769913][T13218] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 424.778348][T13218] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 424.829693][T13218] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 424.838139][T13218] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 424.856328][T13308] loop0: detected capacity change from 0 to 32768 [ 424.910025][T13218] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 424.937412][T13218] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 424.952194][T13306] loop3: detected capacity change from 0 to 32768 [ 424.998959][T13218] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 425.008354][T13310] loop4: detected capacity change from 0 to 32768 [ 425.019698][T13308] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 425.019758][T13308] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 425.057136][T13218] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 425.067184][T13218] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 425.079338][T13218] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 425.090045][T13218] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 425.098765][T13218] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 425.109856][T13218] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 425.121242][T13306] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 425.121310][T13306] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 425.164230][T13218] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 425.219771][T13218] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 425.235131][T13312] loop2: detected capacity change from 0 to 32768 [ 425.245889][T13310] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 425.245954][T13310] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 425.383916][T13218] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 425.401720][T13218] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 425.410774][T13218] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 425.411274][T13308] bcachefs: bch2_fs_get_tree() error: EINVAL [ 425.435891][T13218] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 425.446249][T13312] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 425.463212][T13218] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 425.477232][T13312] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 425.480349][T13310] bcachefs: bch2_fs_get_tree() error: EINVAL [ 425.490658][T13306] bcachefs: bch2_fs_get_tree() error: EINVAL [ 425.521074][T13218] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 425.559702][T13218] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 425.571073][T13218] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 425.609872][T13218] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 425.638560][T13218] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 425.670647][T13218] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 425.690120][T13218] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 425.756689][T13218] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 425.770509][T13312] bcachefs: bch2_fs_get_tree() error: EINVAL [ 425.808067][T13218] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 425.842556][T13218] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 425.903017][T13218] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 425.933884][T13218] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 425.982547][T13218] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 426.020657][T13218] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 426.035252][T13218] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 426.086139][T13218] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 426.117403][T13218] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 426.144390][T13218] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 426.160902][T13218] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 426.187947][T13218] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 426.216884][T13218] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 426.252625][T13218] done [ 426.256103][T13218] bcachefs (loop1): going read-write [ 426.300369][T13218] bcachefs (loop1): journal_replay... [ 426.300459][T13218] bcachefs (loop1): bch2_journal_replay(): error erofs_journal_err [ 426.301796][ T12] bcachefs (loop1): bch2_btree_update_start(): error journal_shutdown [ 426.305883][T13218] bcachefs (loop1): bch2_fs_recovery(): error erofs_journal_err [ 426.332291][ T12] bcachefs (loop1): async_btree_node_rewrite_work(): error journal_shutdown [ 426.380143][T13218] bcachefs (loop1): bch2_fs_start(): error starting filesystem erofs_journal_err [ 426.389782][ T52] bcachefs (loop1): going read-only [ 426.396259][ T52] bcachefs (loop1): finished waiting for writes to stop [ 426.409576][ T52] bcachefs (loop1): flushing journal and stopping allocators, journal seq 10 [ 426.419514][T13218] bcachefs (loop1): shutting down [ 426.438914][ T52] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 10 [ 426.479509][ T52] bcachefs (loop1): unclean shutdown complete, journal seq 10 [ 426.500506][ T52] bcachefs (loop1): done going read-only, filesystem not clean [ 426.545148][T13218] bcachefs (loop1): shutdown complete [ 426.646824][T13342] loop4: detected capacity change from 0 to 32768 [ 426.765996][T13345] loop0: detected capacity change from 0 to 32768 [ 426.839078][T13348] loop2: detected capacity change from 0 to 32768 [ 426.873294][T13346] loop3: detected capacity change from 0 to 32768 [ 427.188803][T13345] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 427.198346][T13348] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 427.220648][T13345] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 427.228848][T13342] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 427.238799][T13348] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 427.273513][T13342] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 427.277079][T13348] bcachefs (loop2): Version upgrade required: [ 427.277079][T13348] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 427.277079][T13348] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 427.277079][T13348] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 427.303990][T13346] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 427.385220][T13346] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 427.390728][T13218] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 427.410032][T13348] bcachefs (loop2): error validating btree node on loop2 at btree extents level 0/0 [ 427.410053][T13348] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 2025/03/20 07:11:57 executed programs: 670 [ 427.410067][T13348] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 427.527571][T13348] bcachefs (loop2): inconsistency detected - emergency read only at journal seq 10 [ 427.560261][T13342] bcachefs: bch2_fs_get_tree() error: EINVAL [ 427.595263][T13348] bcachefs (loop2): flagging btree extents lost data [ 427.616092][T13345] bcachefs: bch2_fs_get_tree() error: EINVAL [ 427.630005][T13348] bcachefs (loop2): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 427.684346][T13348] bcachefs (loop2): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 427.759057][T13348] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 427.834334][T13348] bcachefs (loop2): error validating btree node at btree alloc level 0/0 [ 427.834356][T13348] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 427.834371][T13348] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 427.845458][T13346] bcachefs: bch2_fs_get_tree() error: EINVAL [ 428.030289][T13348] bcachefs (loop2): btree_node_read_work: rewriting btree node at due to error [ 428.030289][T13348] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 428.094743][T13348] bcachefs (loop2): scan_for_btree_nodes... [ 428.200654][T13348] bcachefs (loop2): btree node scan found 7 nodes after overwrites [ 428.229503][T13348] done [ 428.232321][T13348] bcachefs (loop2): check_topology... [ 428.238723][T13348] bcachefs (loop2): btree root extents unreadable, must recover from scan [ 428.279668][T13348] bcachefs (loop2): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 428.305955][T13348] bcachefs (loop2): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 428.360943][ T1073] bcachefs (loop2): error validating btree node on loop2 at btree extents level 0/0 [ 428.360974][ T1073] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 428.360989][ T1073] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 428.407267][T13348] Topology repair: unreadable btree node at [ 428.407287][T13348] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 428.508977][T13348] empty interior btree node at btree=extents level=1 [ 428.508996][T13348] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 428.540689][T13381] loop4: detected capacity change from 0 to 32768 [ 428.597943][T13348] bcachefs (loop2): empty btree root extents [ 428.624834][T13381] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 428.634296][T13348] done [ 428.637144][T13348] bcachefs (loop2): accounting_read... done [ 428.645583][T13348] bcachefs (loop2): alloc_read... done [ 428.647812][T13381] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 428.651484][T13348] bcachefs (loop2): stripes_read... done [ 428.665376][T13348] bcachefs (loop2): snapshots_read... done [ 428.671560][T13348] bcachefs (loop2): check_allocations... [ 428.673485][T13348] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 428.673502][T13348] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 428.736706][T13348] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 428.736728][T13348] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 428.847945][T13348] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 428.847967][T13348] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 428.932683][T13379] loop1: detected capacity change from 0 to 32768 [ 428.932851][T13381] bcachefs: bch2_fs_get_tree() error: EINVAL [ 428.970305][T13348] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 428.970326][T13348] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 429.014404][T13383] loop0: detected capacity change from 0 to 32768 [ 429.111210][T13379] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 429.125998][T13348] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 429.126019][T13348] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 429.138955][T13379] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 429.160405][T13383] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 429.160466][T13383] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 429.206140][T13386] loop3: detected capacity change from 0 to 32768 [ 429.217218][T13348] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.246859][T13348] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 429.308119][T13348] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.319291][T13383] bcachefs: bch2_fs_get_tree() error: EINVAL [ 429.346376][T13348] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 429.388633][T13348] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.400886][T13386] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 429.400954][T13386] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 429.507967][T13348] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 429.578853][T13348] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.609919][T13348] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 429.627876][T13379] bcachefs: bch2_fs_get_tree() error: EINVAL [ 429.665871][T13348] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.729566][T13348] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 429.779796][T13348] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.788154][T13348] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 429.830098][T13386] bcachefs: bch2_fs_get_tree() error: EINVAL [ 429.865780][T13348] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.925923][T13348] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 429.954462][T13348] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 429.987204][T13348] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 430.021317][T13348] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 430.041060][T13348] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 430.079811][T13348] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 430.088679][T13348] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 430.129692][T13348] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 430.186660][T13348] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 430.217831][T13348] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 430.249536][T13348] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 430.284676][T13348] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 430.304113][T13348] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 430.318959][T13416] loop4: detected capacity change from 0 to 32768 [ 430.332208][T13348] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 430.348430][T13348] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 430.419775][T13348] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 430.451814][T13416] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 430.451910][T13416] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 430.556050][T13348] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 430.582649][T13418] loop0: detected capacity change from 0 to 32768 [ 430.606932][T13420] loop1: detected capacity change from 0 to 32768 [ 430.659962][T13348] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 430.700912][T13348] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 430.711597][T13348] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 430.720395][T13348] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 430.731781][T13348] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 430.740875][T13348] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 430.759867][T13348] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 430.768295][T13348] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 430.778891][T13348] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 430.779942][T13416] bcachefs: bch2_fs_get_tree() error: EINVAL [ 430.805079][T13348] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 430.805339][T13418] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 430.825994][T13418] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 430.843610][T13420] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 430.867736][T13348] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 430.899748][T13420] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 430.918264][T13348] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 430.981846][T13348] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 431.015347][T13348] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 431.039985][T13348] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 431.048488][T13348] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 431.083399][T13348] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 431.113146][T13348] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 431.125944][T13422] loop3: detected capacity change from 0 to 32768 [ 431.176709][T13348] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 431.186357][T13348] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 431.223888][T13348] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 431.233665][T13348] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 431.245913][T13348] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 431.250357][T13420] bcachefs: bch2_fs_get_tree() error: EINVAL [ 431.272323][T13418] bcachefs: bch2_fs_get_tree() error: EINVAL [ 431.319510][T13348] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 431.324648][T13422] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 431.378170][T13348] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 431.384803][T13422] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 431.419196][T13348] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 431.471254][T13348] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 431.512808][T13348] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 431.562904][T13348] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 431.622327][T13348] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 431.662448][T13348] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 431.696523][T13348] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 431.707085][T13422] bcachefs: bch2_fs_get_tree() error: EINVAL [ 431.738763][T13348] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 431.766194][T13348] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 431.783500][T13348] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 431.815468][T13348] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 431.839670][T13348] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 431.873811][T13348] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 431.893414][T13348] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 431.924336][T13348] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 431.959659][T13348] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 431.989719][T13348] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 432.006232][T13348] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 432.030185][T13348] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 432.074202][T13446] loop4: detected capacity change from 0 to 32768 [ 432.108384][T13348] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 432.149935][T13348] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 432.158563][T13348] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 432.169040][T13348] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 432.177641][T13348] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 432.189350][T13348] done [ 432.193952][T13348] bcachefs (loop2): going read-write [ 432.214196][T13446] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 432.235645][ T1339] bcachefs (loop2): bch2_btree_update_start(): error journal_shutdown [ 432.239588][T13348] bcachefs (loop2): journal_replay... [ 432.244075][T13348] bcachefs (loop2): bch2_journal_replay(): error erofs_journal_err [ 432.249314][ T1339] bcachefs (loop2): async_btree_node_rewrite_work(): error journal_shutdown [ 432.273759][T13446] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 432.279893][T13348] bcachefs (loop2): bch2_fs_recovery(): error erofs_journal_err [ 432.329470][T13348] bcachefs (loop2): bch2_fs_start(): error starting filesystem erofs_journal_err [ 432.359563][T13348] bcachefs (loop2): shutting down [ 432.359628][ T52] bcachefs (loop2): going read-only [ 432.379638][ T52] bcachefs (loop2): finished waiting for writes to stop [ 432.399489][ T52] bcachefs (loop2): flushing journal and stopping allocators, journal seq 10 [ 432.429494][ T52] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 10 [ 432.460145][ T52] bcachefs (loop2): unclean shutdown complete, journal seq 10 [ 432.468621][ T52] bcachefs (loop2): done going read-only, filesystem not clean [ 432.493256][T13446] bcachefs: bch2_fs_get_tree() error: EINVAL [ 432.510319][T13348] bcachefs (loop2): shutdown complete [ 432.516705][T13454] loop0: detected capacity change from 0 to 32768 [ 432.746705][T13458] loop3: detected capacity change from 0 to 32768 [ 432.754277][T13456] loop1: detected capacity change from 0 to 32768 2025/03/20 07:12:02 executed programs: 682 [ 433.051332][T13482] loop4: detected capacity change from 0 to 32768 [ 433.097635][T13456] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 433.097944][T13458] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 433.115874][T13456] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 433.123683][T13458] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 433.136664][T13454] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 433.148325][T13454] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 433.148397][T13458] bcachefs (loop3): Version upgrade required: [ 433.148397][T13458] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 433.148397][T13458] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 433.148397][T13458] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 433.231488][T13458] bcachefs (loop3): error validating btree node on loop3 at btree extents level 0/0 [ 433.231508][T13458] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 433.231521][T13458] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 433.272037][T13458] bcachefs (loop3): inconsistency detected - emergency read only at journal seq 10 [ 433.303568][T13482] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 433.332385][T13458] bcachefs (loop3): flagging btree extents lost data [ 433.339129][T13458] bcachefs (loop3): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 433.375892][T13458] bcachefs (loop3): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 433.404449][T13482] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 433.414465][T13348] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 433.469801][T13458] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 433.514767][T13458] bcachefs (loop3): error validating btree node at btree alloc level 0/0 [ 433.514787][T13458] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 433.514800][T13458] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 433.545851][T13454] bcachefs: bch2_fs_get_tree() error: EINVAL [ 433.601692][T13456] bcachefs: bch2_fs_get_tree() error: EINVAL [ 433.647500][T13458] bcachefs (loop3): btree_node_read_work: rewriting btree node at due to error [ 433.647500][T13458] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 433.719866][T13482] bcachefs: bch2_fs_get_tree() error: EINVAL [ 433.766438][T13458] bcachefs (loop3): scan_for_btree_nodes... [ 433.859813][T13458] bcachefs (loop3): btree node scan found 7 nodes after overwrites [ 433.909599][T13458] done [ 433.915303][T13458] bcachefs (loop3): check_topology... [ 433.937540][T13458] bcachefs (loop3): btree root extents unreadable, must recover from scan [ 433.964599][T13458] bcachefs (loop3): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 433.975750][T13458] bcachefs (loop3): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 434.064228][ T42] bcachefs (loop3): error validating btree node on loop3 at btree extents level 0/0 [ 434.064259][ T42] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 434.064274][ T42] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 434.120099][T13458] Topology repair: unreadable btree node at [ 434.120119][T13458] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 434.180966][T13458] empty interior btree node at btree=extents level=1 [ 434.180985][T13458] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 434.226319][T13458] bcachefs (loop3): empty btree root extents [ 434.291239][T13458] done [ 434.299620][T13458] bcachefs (loop3): accounting_read... done [ 434.355048][T13458] bcachefs (loop3): alloc_read... done [ 434.379535][T13458] bcachefs (loop3): stripes_read... done [ 434.405773][T13458] bcachefs (loop3): snapshots_read... done [ 434.426116][T13458] bcachefs (loop3): check_allocations... [ 434.431389][T13458] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 434.431436][T13458] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 434.526143][T13499] loop2: detected capacity change from 0 to 32768 [ 434.545257][T13458] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 434.545279][T13458] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 434.649650][T13458] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 434.649680][T13458] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 434.701367][T13499] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 434.710743][T13499] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 434.727970][T13458] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 434.727991][T13458] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 434.801351][T13458] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 434.801373][T13458] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 434.866695][T13458] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 434.890917][T13503] loop1: detected capacity change from 0 to 32768 [ 434.905519][T13458] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 434.928057][T13458] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 434.937247][T13458] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 434.948215][T13458] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 434.974106][T13499] bcachefs: bch2_fs_get_tree() error: EINVAL [ 434.976264][T13505] loop4: detected capacity change from 0 to 32768 [ 435.014419][T13501] loop0: detected capacity change from 0 to 32768 [ 435.025730][T13503] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 435.025796][T13503] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 435.096150][T13458] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 435.116114][T13458] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 435.125359][T13458] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 435.137532][T13458] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 435.158854][T13458] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 435.187844][T13505] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 435.187911][T13505] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 435.215513][T13458] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 435.226409][T13458] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 435.236381][T13458] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 435.248375][T13458] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 435.267145][T13458] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 435.286772][T13501] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 435.286837][T13501] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 435.399731][T13458] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 435.430701][T13505] bcachefs: bch2_fs_get_tree() error: EINVAL [ 435.521677][T13458] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 435.539759][T13458] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 435.558358][T13503] bcachefs: bch2_fs_get_tree() error: EINVAL [ 435.589875][T13458] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 435.600344][T13501] bcachefs: bch2_fs_get_tree() error: EINVAL [ 435.639509][T13458] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 435.670107][T13458] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 435.715627][T13458] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 435.741706][T13458] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 435.762091][T13458] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 435.811002][T13458] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 435.849522][T13458] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 435.893898][T13458] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 435.914143][T13458] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 435.948423][T13458] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 436.004565][T13458] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 436.035420][T13458] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.069505][T13458] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.099712][T13458] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.121952][T13535] loop2: detected capacity change from 0 to 32768 [ 436.158148][T13458] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.187656][T13458] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.239774][T13458] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.279788][T13458] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.327179][T13535] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 436.327248][T13535] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 436.365015][T13458] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.383015][T13537] loop4: detected capacity change from 0 to 32768 [ 436.392851][T13458] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.401659][T13458] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.412374][T13458] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.450844][T13458] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.499619][T13458] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.508036][T13458] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.524429][T13458] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 436.534500][T13458] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 436.544977][T13458] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 436.556950][T13458] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 436.568372][T13458] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 436.570818][T13537] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 436.586546][T13537] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 436.612681][T13458] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 436.637759][T13535] bcachefs: bch2_fs_get_tree() error: EINVAL [ 436.692985][T13458] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 436.749905][T13458] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 436.779675][T13458] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 436.809595][T13458] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 436.834666][T13458] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 436.856169][T13458] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 436.889603][T13458] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 436.916503][T13537] bcachefs: bch2_fs_get_tree() error: EINVAL [ 436.929778][T13458] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 436.956495][T13541] loop0: detected capacity change from 0 to 32768 [ 436.989765][T13458] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 437.003329][T13539] loop1: detected capacity change from 0 to 32768 [ 437.047088][T13458] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 437.093266][T13458] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 437.121918][T13458] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 437.131406][T13458] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 437.143670][T13458] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.152796][T13458] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 437.163438][T13458] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.172657][T13458] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 437.208183][T13541] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 437.208248][T13541] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 437.275714][T13539] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 437.275783][T13539] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 437.388500][T13541] bcachefs: bch2_fs_get_tree() error: EINVAL [ 437.479296][T13458] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.544850][T13458] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 437.587566][T13458] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.609603][T13458] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 437.645129][T13458] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.667469][T13539] bcachefs: bch2_fs_get_tree() error: EINVAL [ 437.707239][T13458] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 437.738899][T13458] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.759765][T13458] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 437.779744][T13458] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.800271][T13561] loop2: detected capacity change from 0 to 32768 [ 437.849538][T13458] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 437.884206][T13458] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 437.929713][T13458] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing 2025/03/20 07:12:07 executed programs: 694 [ 437.971247][T13561] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 437.971314][T13561] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 438.074637][T13458] done [ 438.078076][T13458] bcachefs (loop3): going read-write [ 438.095839][T13458] bcachefs (loop3): journal_replay... [ 438.095935][T13458] bcachefs (loop3): bch2_journal_replay(): error erofs_journal_err [ 438.110461][ T1151] bcachefs (loop3): bch2_btree_update_start(): error journal_shutdown [ 438.118864][ T1151] bcachefs (loop3): async_btree_node_rewrite_work(): error journal_shutdown [ 438.148107][T13458] bcachefs (loop3): bch2_fs_recovery(): error erofs_journal_err [ 438.157992][T13561] bcachefs: bch2_fs_get_tree() error: EINVAL [ 438.171594][T13458] bcachefs (loop3): bch2_fs_start(): error starting filesystem erofs_journal_err [ 438.200551][T13573] loop4: detected capacity change from 0 to 32768 [ 438.208093][T13458] bcachefs (loop3): shutting down [ 438.208110][ T52] bcachefs (loop3): going read-only [ 438.238260][ T52] bcachefs (loop3): finished waiting for writes to stop [ 438.259957][ T52] bcachefs (loop3): flushing journal and stopping allocators, journal seq 10 [ 438.268974][ T52] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 10 [ 438.292070][ T52] bcachefs (loop3): unclean shutdown complete, journal seq 10 [ 438.310420][ T52] bcachefs (loop3): done going read-only, filesystem not clean [ 438.371754][T13458] bcachefs (loop3): shutdown complete [ 438.544027][T13575] loop0: detected capacity change from 0 to 32768 [ 438.791137][T13593] loop2: detected capacity change from 0 to 32768 [ 438.829664][T13575] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 438.854159][T13573] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 438.880187][T13575] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 438.896847][T13573] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 438.910031][T13573] bcachefs (loop4): Version upgrade required: [ 438.910031][T13573] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 438.910031][T13573] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 438.910031][T13573] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 438.990442][T13584] loop1: detected capacity change from 0 to 32768 [ 439.049231][T13573] bcachefs (loop4): error validating btree node on loop4 at btree extents level 0/0 [ 439.049252][T13573] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 439.049267][T13573] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 439.059799][T13458] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 439.074564][T13593] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 439.074629][T13593] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 439.196138][T13573] bcachefs (loop4): inconsistency detected - emergency read only at journal seq 10 [ 439.205099][T13584] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 439.207547][T13573] bcachefs (loop4): flagging btree extents lost data [ 439.229774][T13575] bcachefs: bch2_fs_get_tree() error: EINVAL [ 439.238734][T13584] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 439.328485][T13573] bcachefs (loop4): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 439.361615][T13573] bcachefs (loop4): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 439.431318][T13573] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 439.465492][T13593] bcachefs: bch2_fs_get_tree() error: EINVAL [ 439.507181][T13573] bcachefs (loop4): error validating btree node at btree alloc level 0/0 [ 439.507201][T13573] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 439.507216][T13573] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 439.589960][T13584] bcachefs: bch2_fs_get_tree() error: EINVAL [ 439.656012][T13573] bcachefs (loop4): btree_node_read_work: rewriting btree node at due to error [ 439.656012][T13573] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 439.729153][T13573] bcachefs (loop4): scan_for_btree_nodes... [ 439.767155][T13573] bcachefs (loop4): btree node scan found 7 nodes after overwrites [ 439.789820][T13573] done [ 439.792651][T13573] bcachefs (loop4): check_topology... [ 439.810245][T13573] bcachefs (loop4): btree root extents unreadable, must recover from scan [ 439.859665][T13573] bcachefs (loop4): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 439.871769][T13573] bcachefs (loop4): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 439.956818][ T42] bcachefs (loop4): error validating btree node on loop4 at btree extents level 0/0 [ 439.956868][ T42] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 439.956884][ T42] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 440.010916][T13573] Topology repair: unreadable btree node at [ 440.010937][T13573] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 440.068023][T13617] loop0: detected capacity change from 0 to 32768 [ 440.195575][T13617] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 440.195642][T13617] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 440.296437][T13573] empty interior btree node at btree=extents level=1 [ 440.296457][T13573] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 440.346498][T13573] bcachefs (loop4): empty btree root extents [ 440.381905][ T1299] ieee802154 phy0 wpan0: encryption failed: -22 [ 440.388327][ T1299] ieee802154 phy1 wpan1: encryption failed: -22 [ 440.399675][T13573] done [ 440.402497][T13573] bcachefs (loop4): accounting_read... done [ 440.425695][T13573] bcachefs (loop4): alloc_read... done [ 440.449716][T13573] bcachefs (loop4): stripes_read... done [ 440.467863][T13619] loop3: detected capacity change from 0 to 32768 [ 440.484527][T13573] bcachefs (loop4): snapshots_read... done [ 440.514903][T13573] bcachefs (loop4): check_allocations... [ 440.526037][T13573] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 440.526060][T13573] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 440.574670][T13617] bcachefs: bch2_fs_get_tree() error: EINVAL [ 440.650591][T13622] loop1: detected capacity change from 0 to 32768 [ 440.661641][T13573] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 440.661663][T13573] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 440.676676][T13619] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 440.676743][T13619] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 440.877935][T13573] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 440.877955][T13573] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 440.884213][T13622] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 440.913874][T13622] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 440.922252][T13573] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 440.922272][T13573] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 440.981239][T13624] loop2: detected capacity change from 0 to 32768 [ 441.068250][T13573] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 441.068272][T13573] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 441.110095][T13573] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.128506][T13573] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.136059][T13624] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 441.150162][T13619] bcachefs: bch2_fs_get_tree() error: EINVAL [ 441.159592][T13624] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 441.223855][T13573] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.233891][T13573] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.248435][T13573] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.277804][T13573] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.306401][T13622] bcachefs: bch2_fs_get_tree() error: EINVAL [ 441.333495][T13573] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.387205][T13573] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.421868][T13573] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.442012][T13573] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.473043][T13573] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.499647][T13573] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.534874][T13573] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.564139][T13573] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.564392][T13624] bcachefs: bch2_fs_get_tree() error: EINVAL [ 441.584420][T13573] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.605251][T13573] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 441.651066][T13573] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 441.686816][T13573] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 441.724296][T13573] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 441.764361][T13647] loop0: detected capacity change from 0 to 32768 [ 441.799515][T13573] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 441.815898][T13573] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 441.828273][T13573] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 441.839892][T13573] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 441.849085][T13573] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 441.860288][T13573] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 441.869133][T13573] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 441.888873][T13573] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 441.898310][T13573] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 441.908851][T13573] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 441.919981][T13573] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 441.930918][T13573] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 441.932951][T13647] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 441.948765][T13573] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 441.987036][T13647] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 442.059037][T13573] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 442.089615][T13573] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 442.130734][T13573] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 442.169551][T13573] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 442.185128][T13573] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 442.209639][T13573] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 442.233898][T13573] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 442.257986][T13656] loop3: detected capacity change from 0 to 32768 [ 442.279041][T13573] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 442.280658][T13647] bcachefs: bch2_fs_get_tree() error: EINVAL [ 442.316226][T13573] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 442.369620][T13573] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 442.429048][T13573] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 442.478920][T13656] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 442.478989][T13656] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 442.507238][T13658] loop1: detected capacity change from 0 to 32768 [ 442.657194][T13658] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 442.657260][T13658] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 442.744076][T13573] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 442.754630][T13656] bcachefs: bch2_fs_get_tree() error: EINVAL [ 442.756484][T13667] loop2: detected capacity change from 0 to 32768 [ 442.811059][T13573] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 442.845585][T13573] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 442.907994][T13573] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 442.918632][T13573] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 442.928001][T13667] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 442.930296][T13658] bcachefs: bch2_fs_get_tree() error: EINVAL [ 442.964514][T13573] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 442.999877][T13667] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 443.050060][T13573] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 443.099107][T13573] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 443.115213][T13573] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing 2025/03/20 07:12:12 executed programs: 705 [ 443.149741][T13573] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 443.158433][T13573] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 443.219763][T13573] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 443.228417][T13573] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 443.275181][T13573] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 443.290589][T13573] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 443.320009][T13573] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 443.339726][T13573] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 443.361541][T13667] bcachefs: bch2_fs_get_tree() error: EINVAL [ 443.398669][T13573] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 443.451804][T13573] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 443.479554][T13573] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 443.519303][T13573] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 443.560291][T13573] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 443.589736][T13573] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 443.598264][T13573] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 443.637215][T13573] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 443.667632][T13573] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 443.720924][T13573] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 443.730242][T13573] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 443.752305][T13573] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 443.765830][T13683] loop0: detected capacity change from 0 to 32768 [ 443.776165][T13573] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 443.787369][T13573] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 443.814651][T13573] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 443.849910][T13573] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 443.859262][T13573] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 443.877858][T13683] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 443.877929][T13683] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 443.947837][T13694] loop3: detected capacity change from 0 to 32768 [ 443.958376][T13692] loop1: detected capacity change from 0 to 32768 [ 443.982563][T13573] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 444.000777][T13573] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 444.041283][T13573] done [ 444.044768][T13573] bcachefs (loop4): going read-write [ 444.052749][T13573] bcachefs (loop4): journal_replay... [ 444.052827][T13573] bcachefs (loop4): bch2_journal_replay(): error erofs_journal_err [ 444.054280][ T12] bcachefs (loop4): bch2_btree_update_start(): error journal_shutdown [ 444.058247][T13573] bcachefs (loop4): bch2_fs_recovery(): error erofs_journal_err [ 444.085161][ T12] bcachefs (loop4): async_btree_node_rewrite_work(): error journal_shutdown [ 444.108974][T13573] bcachefs (loop4): bch2_fs_start(): error starting filesystem erofs_journal_err [ 444.118713][ T9] bcachefs (loop4): going read-only [ 444.124794][T13573] bcachefs (loop4): shutting down [ 444.139505][ T9] bcachefs (loop4): finished waiting for writes to stop [ 444.147178][ T9] bcachefs (loop4): flushing journal and stopping allocators, journal seq 10 [ 444.184005][ T9] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 10 [ 444.199471][ T9] bcachefs (loop4): unclean shutdown complete, journal seq 10 [ 444.208080][ T9] bcachefs (loop4): done going read-only, filesystem not clean [ 444.233004][T13683] bcachefs: bch2_fs_get_tree() error: EINVAL [ 444.238547][T13692] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 444.282648][T13692] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 444.291130][T13573] bcachefs (loop4): shutdown complete [ 444.339653][T13694] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 444.359884][T13694] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 444.380969][T13694] bcachefs (loop3): Version upgrade required: [ 444.380969][T13694] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 444.380969][T13694] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 444.380969][T13694] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 444.511694][T13694] bcachefs (loop3): error validating btree node on loop3 at btree extents level 0/0 [ 444.511715][T13694] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 444.511730][T13694] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 444.611541][T13573] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 444.644457][T13694] bcachefs (loop3): inconsistency detected - emergency read only at journal seq 10 [ 444.657536][T13696] loop2: detected capacity change from 0 to 32768 [ 444.661271][T13694] bcachefs (loop3): flagging btree extents lost data [ 444.683198][T13692] bcachefs: bch2_fs_get_tree() error: EINVAL [ 444.708850][T13694] bcachefs (loop3): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 444.763313][T13694] bcachefs (loop3): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 444.826745][T13694] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 444.867871][T13696] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 444.867939][T13696] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 444.955814][T13694] bcachefs (loop3): error validating btree node at btree alloc level 0/0 [ 444.955835][T13694] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 444.955857][T13694] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 445.050010][T13694] bcachefs (loop3): btree_node_read_work: rewriting btree node at due to error [ 445.050010][T13694] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 445.127286][T13694] bcachefs (loop3): scan_for_btree_nodes... [ 445.215447][T13694] bcachefs (loop3): btree node scan found 7 nodes after overwrites [ 445.242095][T13694] done [ 445.244916][T13694] bcachefs (loop3): check_topology... [ 445.260260][T13696] bcachefs: bch2_fs_get_tree() error: EINVAL [ 445.290996][T13694] bcachefs (loop3): btree root extents unreadable, must recover from scan [ 445.309581][T13694] bcachefs (loop3): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 445.339653][T13694] bcachefs (loop3): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 445.420438][ T42] bcachefs (loop3): error validating btree node on loop3 at btree extents level 0/0 [ 445.420469][ T42] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 445.420484][ T42] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 445.464874][T13694] Topology repair: unreadable btree node at [ 445.464894][T13694] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 445.512721][T13726] loop0: detected capacity change from 0 to 32768 [ 445.709820][T13694] empty interior btree node at btree=extents level=1 [ 445.709840][T13694] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 445.717817][T13726] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 445.739530][T13694] bcachefs (loop3): empty btree root extents [ 445.763247][T13694] done [ 445.766114][T13694] bcachefs (loop3): accounting_read... done [ 445.812815][T13694] bcachefs (loop3): alloc_read... done [ 445.819650][T13726] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 445.847390][T13694] bcachefs (loop3): stripes_read... done [ 445.889666][T13694] bcachefs (loop3): snapshots_read... done [ 445.929535][T13694] bcachefs (loop3): check_allocations... [ 445.948464][T13694] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 445.948486][T13694] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 446.016960][T13732] loop1: detected capacity change from 0 to 32768 [ 446.108439][T13729] loop4: detected capacity change from 0 to 32768 [ 446.130739][T13694] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 446.130760][T13694] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 446.167869][T13726] bcachefs: bch2_fs_get_tree() error: EINVAL [ 446.261097][T13694] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 446.261118][T13694] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 446.271758][T13732] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 446.271826][T13732] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 446.358562][T13729] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 446.358632][T13729] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 446.572998][T13741] loop2: detected capacity change from 0 to 32768 [ 446.601551][T13694] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 446.601573][T13694] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 446.609877][T13732] bcachefs: bch2_fs_get_tree() error: EINVAL [ 446.700917][T13694] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 446.700938][T13694] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 446.701312][T13729] bcachefs: bch2_fs_get_tree() error: EINVAL [ 446.731610][T13694] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 446.733867][T13741] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 446.750110][T13694] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 446.769629][T13741] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 446.784152][T13694] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 446.798444][T13694] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 446.842104][T13694] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 446.880333][T13694] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 446.907182][T13694] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 446.954746][T13694] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 447.006497][T13694] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 447.030240][T13694] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 447.053610][T13741] bcachefs: bch2_fs_get_tree() error: EINVAL [ 447.104361][T13694] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 447.157150][T13694] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 447.218409][T13694] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 447.255689][T13694] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 447.315178][T13694] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 447.354194][T13694] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 447.401683][T13694] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 447.429614][T13694] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 447.470290][T13694] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 447.489919][T13694] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 447.510835][T13694] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 447.529879][T13694] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 447.558743][T13694] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 447.598277][T13694] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 447.619184][T13694] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 447.638732][T13694] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 447.659844][T13694] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 447.689282][T13694] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 447.719758][T13694] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 447.728618][T13694] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 447.740772][T13766] loop1: detected capacity change from 0 to 32768 [ 447.813608][T13764] loop0: detected capacity change from 0 to 32768 [ 447.880630][T13768] loop4: detected capacity change from 0 to 32768 [ 447.889596][T13694] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 447.898523][T13694] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 447.908856][T13694] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 447.914341][T13766] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 447.927429][T13766] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 447.944335][T13764] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 447.944404][T13764] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 447.950259][T13694] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 448.042590][T13768] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 448.042659][T13768] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 448.166007][T13694] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 448.199535][T13694] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 448.213092][T13694] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 448.223165][T13766] bcachefs: bch2_fs_get_tree() error: EINVAL [ 448.252733][T13764] bcachefs: bch2_fs_get_tree() error: EINVAL [ 448.308757][T13768] bcachefs: bch2_fs_get_tree() error: EINVAL [ 448.330868][T13694] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 448.355036][T13694] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 448.365944][T13694] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 448.376174][T13694] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 448.385375][T13770] loop2: detected capacity change from 0 to 32768 [ 448.458853][T13694] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 448.545263][T13694] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 448.557513][T13694] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing 2025/03/20 07:12:18 executed programs: 716 [ 448.602405][T13694] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 448.612962][T13694] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 448.646606][T13694] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 448.667756][T13770] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 448.667821][T13770] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 448.750381][T13694] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 448.785319][T13694] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 448.826075][T13694] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 448.889594][T13694] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 448.919547][T13694] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 448.930826][T13770] bcachefs: bch2_fs_get_tree() error: EINVAL [ 448.965744][T13694] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 449.015530][T13694] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 449.056124][T13694] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 449.087350][T13694] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 449.127754][T13694] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 449.158931][T13694] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 449.197556][T13694] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 449.229819][T13694] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 449.256684][T13694] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 449.280249][T13694] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 449.306274][T13694] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 449.365302][T13694] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.379558][T13694] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.411106][T13694] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.443611][T13804] loop4: detected capacity change from 0 to 32768 [ 449.469547][T13694] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.479881][T13694] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.488383][T13694] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.505906][T13694] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.524563][T13802] loop1: detected capacity change from 0 to 32768 [ 449.544945][T13801] loop0: detected capacity change from 0 to 32768 [ 449.572387][T13694] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.598001][T13694] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.612860][T13804] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 449.612930][T13804] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 449.714178][T13694] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.729055][T13694] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.737698][T13694] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.748108][T13694] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.750073][T13802] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 449.765897][T13694] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.776736][T13694] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 449.785388][T13694] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 449.795842][T13801] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 449.807650][T13694] done [ 449.814670][T13694] bcachefs (loop3): going read-write [ 449.820374][T13801] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 449.828818][T13802] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 449.854750][T13694] bcachefs (loop3): journal_replay... [ 449.854852][T13694] bcachefs (loop3): bch2_journal_replay(): error erofs_journal_err [ 449.856107][ T53] bcachefs (loop3): bch2_btree_update_start(): error journal_shutdown [ 449.863962][T13694] bcachefs (loop3): bch2_fs_recovery(): error erofs_journal_err [ 449.902225][ T53] bcachefs (loop3): async_btree_node_rewrite_work(): error journal_shutdown [ 449.938377][T13694] bcachefs (loop3): bch2_fs_start(): error starting filesystem erofs_journal_err [ 449.966258][T13804] bcachefs: bch2_fs_get_tree() error: EINVAL [ 449.968061][T13694] bcachefs (loop3): shutting down [ 449.972554][ T6785] bcachefs (loop3): going read-only [ 449.993204][ T6785] bcachefs (loop3): finished waiting for writes to stop [ 450.047453][ T6785] bcachefs (loop3): flushing journal and stopping allocators, journal seq 10 [ 450.065696][T13806] loop2: detected capacity change from 0 to 32768 [ 450.087781][ T6785] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 10 [ 450.129940][ T6785] bcachefs (loop3): unclean shutdown complete, journal seq 10 [ 450.142737][ T6785] bcachefs (loop3): done going read-only, filesystem not clean [ 450.199153][T13801] bcachefs: bch2_fs_get_tree() error: EINVAL [ 450.257764][T13694] bcachefs (loop3): shutdown complete [ 450.302571][T13806] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 450.302631][T13802] bcachefs: bch2_fs_get_tree() error: EINVAL [ 450.318638][T13806] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 450.332657][T13806] bcachefs (loop2): Version upgrade required: [ 450.332657][T13806] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 450.332657][T13806] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 450.332657][T13806] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 450.425685][T13806] bcachefs (loop2): error validating btree node on loop2 at btree extents level 0/0 [ 450.425704][T13806] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 450.425717][T13806] node offset 8/16 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 16), shutting down [ 450.517976][T13806] bcachefs (loop2): inconsistency detected - emergency read only at journal seq 10 [ 450.537756][T13806] bcachefs (loop2): flagging btree extents lost data [ 450.551032][T13806] bcachefs (loop2): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 450.568414][T13806] bcachefs (loop2): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 450.611016][T13806] error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 450.712369][T13694] bcachefs: bch2_fs_get_tree() error: erofs_journal_err [ 450.724482][T13806] bcachefs (loop2): error validating btree node at btree alloc level 0/0 [ 450.724504][T13806] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 450.724518][T13806] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 450.898491][T13806] bcachefs (loop2): btree_node_read_work: rewriting btree node at due to error [ 450.898491][T13806] btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 [ 451.027413][T13806] bcachefs (loop2): scan_for_btree_nodes... [ 451.086676][T13806] bcachefs (loop2): btree node scan found 7 nodes after overwrites [ 451.135691][T13806] done [ 451.138529][T13806] bcachefs (loop2): check_topology... [ 451.148535][T13806] bcachefs (loop2): btree root extents unreadable, must recover from scan [ 451.169551][T13806] bcachefs (loop2): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 451.200833][T13806] bcachefs (loop2): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 451.246602][ T1073] bcachefs (loop2): error validating btree node on loop2 at btree extents level 0/0 [ 451.246635][ T1073] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 451.246650][ T1073] node offset 8/256 bset u64s 65329: bset past end of btree node (offset 8 len 1024 but written 256), shutting down [ 451.321667][T13806] Topology repair: unreadable btree node at [ 451.321687][T13806] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 256 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 451.407455][T13841] loop1: detected capacity change from 0 to 32768 [ 451.446040][T13836] loop4: detected capacity change from 0 to 32768 [ 451.452003][T13839] loop0: detected capacity change from 0 to 32768 [ 451.519561][T13806] empty interior btree node at btree=extents level=1 [ 451.519579][T13806] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 451.568464][T13806] bcachefs (loop2): empty btree root extents [ 451.601807][T13841] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 451.605105][T13806] done [ 451.629542][T13841] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 451.634117][T13806] bcachefs (loop2): accounting_read... [ 451.637772][T13839] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 451.653613][T13806] done [ 451.656520][T13806] bcachefs (loop2): alloc_read... done [ 451.662902][T13806] bcachefs (loop2): stripes_read... done [ 451.668757][T13806] bcachefs (loop2): snapshots_read... done [ 451.676033][T13806] bcachefs (loop2): check_allocations... [ 451.683374][T13806] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 451.683397][T13806] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 451.690602][T13839] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 451.691980][T13836] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 451.692033][T13836] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 451.848280][T13841] bcachefs: bch2_fs_get_tree() error: EINVAL [ 451.849160][T13844] loop3: detected capacity change from 0 to 32768 [ 452.004084][T13806] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 452.004105][T13806] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 452.043890][T13844] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 452.057137][T13836] bcachefs: bch2_fs_get_tree() error: EINVAL [ 452.060736][T13839] bcachefs: bch2_fs_get_tree() error: EINVAL [ 452.133122][T13806] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 452.133143][T13806] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 452.140821][T13844] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 452.304817][T13806] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 452.304837][T13806] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 452.395073][T13844] bcachefs: bch2_fs_get_tree() error: EINVAL [ 452.401996][T13806] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 452.402016][T13806] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 452.518670][T13806] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.527537][T13806] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 452.585230][T13806] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.604034][T13806] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 452.643246][T13806] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.672724][T13806] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 452.704276][T13806] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.736216][T13806] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 452.766853][T13806] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.807275][T13806] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 452.828535][T13806] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.862089][T13806] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 452.888121][T13806] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.907602][T13806] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 452.928106][T13806] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 452.948239][T13806] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 452.968962][T13806] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 452.999505][T13806] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.039786][T13806] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 453.069174][T13806] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.088016][T13874] loop1: detected capacity change from 0 to 32768 [ 453.106946][T13806] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 453.128793][T13806] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.147059][T13806] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 453.166402][T13806] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.187049][T13806] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 453.227486][T13806] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.238917][T13876] loop4: detected capacity change from 0 to 32768 [ 453.260914][T13874] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 453.270695][T13806] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 453.281252][T13806] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.296511][T13806] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 453.307274][T13806] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.309501][T13874] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 453.325680][T13806] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.335366][T13806] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.354679][T13806] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.410210][T13806] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.451924][T13876] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 453.451992][T13876] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 453.488619][T13806] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.508068][T13806] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.518424][T13806] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.535293][T13806] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.545763][T13806] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.550140][T13878] loop0: detected capacity change from 0 to 32768 [ 453.575891][T13806] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.607896][T13880] loop3: detected capacity change from 0 to 32768 [ 453.653124][T13806] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.662607][T13806] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.679921][T13806] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.688356][T13806] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.705817][T13806] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 453.714332][T13806] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 453.730635][T13806] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 453.732814][T13874] bcachefs: bch2_fs_get_tree() error: EINVAL [ 453.745717][T13806] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 453.757154][T13876] bcachefs: bch2_fs_get_tree() error: EINVAL [ 453.777709][T13878] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 453.777779][T13878] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 453.777999][T13880] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 453.778053][T13880] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 453.979786][T13806] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 454.049722][T13806] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 454.070960][T13880] bcachefs: bch2_fs_get_tree() error: EINVAL [ 454.090280][T13878] bcachefs: bch2_fs_get_tree() error: EINVAL [ 454.119576][T13806] bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing 2025/03/20 07:12:23 executed programs: 728 [ 454.161574][T13806] bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 454.229614][T13806] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 454.238320][T13806] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 454.319484][T13806] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 454.328135][T13806] bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 454.384766][T13806] bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 454.416284][T13806] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 454.453203][T13806] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 454.479807][T13806] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 454.498846][T13806] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 454.531779][T13806] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 454.580190][T13806] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 454.611494][T13806] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.639539][T13806] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.669672][T13806] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.698688][T13806] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.735788][T13806] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.780102][T13806] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.806227][T13910] loop1: detected capacity change from 0 to 32768 [ 454.826870][T13806] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.869494][T13806] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.879687][T13806] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.888191][T13806] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.898318][T13806] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.906975][T13806] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.917018][T13806] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.926365][T13806] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.937261][T13806] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 454.944497][T13910] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 454.969940][T13806] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 454.999647][T13910] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 455.090598][T13806] done [ 455.094202][T13806] bcachefs (loop2): going read-write [ 455.129019][T13915] loop0: detected capacity change from 0 to 32768 [ 455.136486][T13806] bcachefs (loop2): journal_replay... [ 455.136573][T13806] bcachefs (loop2): bch2_journal_replay(): error erofs_journal_err [ 455.140113][ T1151] bcachefs (loop2): bch2_btree_update_start(): error journal_shutdown [ 455.146409][T13806] bcachefs (loop2): bch2_fs_recovery(): error erofs_journal_err [ 455.171219][ T1151] bcachefs (loop2): async_btree_node_rewrite_work(): error journal_shutdown [ 455.189745][T13806] bcachefs (loop2): bch2_fs_start(): error starting filesystem erofs_journal_err [ 455.209285][T13806] bcachefs (loop2): shutting down [ 455.209504][ T5874] bcachefs (loop2): going read-only [ 455.228670][ T5874] bcachefs (loop2): finished waiting for writes to stop [ 455.229789][T13912] loop4: detected capacity change from 0 to 32768 [ 455.252866][ T5874] bcachefs (loop2): flushing journal and stopping allocators, journal seq 10 [ 455.295954][ T5874] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 10 [ 455.321706][T13910] bcachefs: bch2_fs_get_tree() error: EINVAL [ 455.342142][ T5874] bcachefs (loop2): unclean shutdown complete, journal seq 10 [ 455.399248][ T5874] bcachefs (loop2): done going read-only, filesystem not clean [ 455.414655][T13915] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 455.424068][T13915] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 455.497440][T13806] bcachefs (loop2): shutdown complete [ 455.528727][T13912] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 455.544898][T13916] loop3: detected capacity change from 0 to 32768 [ 455.620028][T13912] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 455.669324][T13912] bcachefs (loop4): Version upgrade required: [ 455.669324][T13912] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 455.669324][T13912] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 455.669324][T13912] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 455.782378][T13912] bcachefs (loop4): error validating btree node on loop4 at btree extents level 0/0 [ 455.782400][T13912] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0