free, should be sb, fixing [ 217.831445][ T6042] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.836028][ T6042] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.841816][ T6042] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.846728][ T6042] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.852394][ T6042] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.856977][ T6042] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.864938][ T6042] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.869897][ T6042] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.873769][ T6042] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.878373][ T6042] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 217.885019][ T6042] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 217.890282][ T6042] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 217.894424][ T6042] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 217.901382][ T6042] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 217.905883][ T6042] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 217.911326][ T6042] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 217.915441][ T6042] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 217.922450][ T6042] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 217.927267][ T6042] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 217.933445][ T6042] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 217.938344][ T6042] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 217.945246][ T6042] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 217.950132][ T6042] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 217.954670][ T6042] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 217.961017][ T6042] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 217.968354][ T6042] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 217.972858][ T6042] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 217.977844][ T6042] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 217.986674][ T6042] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.991038][ T6042] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.995671][ T6042] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.001516][ T6042] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.005788][ T6042] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.010471][ T6042] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.015235][ T6042] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.021543][ T6042] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.026030][ T6042] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.030453][ T6042] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.035083][ T6042] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.041653][ T6042] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.046291][ T6042] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.050700][ T6042] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.055369][ T6042] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.061522][ T6042] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.070939][ T6042] done [ 218.073072][ T6042] bcachefs (loop0): going read-write [ 218.088499][ T6042] bcachefs (loop0): journal_replay... done [ 218.143620][ T6042] bcachefs (loop0): check_alloc_info... done [ 218.151184][ T6042] bcachefs (loop0): check_lrus... done [ 218.154167][ T6042] bcachefs (loop0): check_btree_backpointers... done [ 218.157579][ T6042] bcachefs (loop0): check_backpointers_to_extents... [ 218.158163][ T6042] bcachefs (loop0): cannot start: journal seq overflow [ 218.163698][ T6042] bcachefs (loop0): fatal error - emergency read only [ 218.166388][ T9] bcachefs (loop0): going read-only [ 218.172058][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 218.175997][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 218.182577][ T6042] bcachefs (loop0): bch2_check_backpointers_to_extents(): error journal_shutdown [ 218.186187][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 218.191020][ T6042] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 218.194231][ T6042] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 218.197942][ T6042] bcachefs (loop0): shutting down [ 218.219254][ T9] bcachefs (loop0): finished waiting for writes to stop [ 218.222143][ T9] bcachefs (loop0): done going read-only, filesystem not clean [ 218.259854][ T6042] bcachefs (loop0): shutdown complete [ 218.820915][ T6042] bcachefs: bch2_fs_get_tree() error: journal_shutdown 2025/04/16 18:54:54 executed programs: 42 [ 219.136370][ T6052] loop0: detected capacity change from 0 to 32768 [ 219.205794][ T6052] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 219.214747][ T6052] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 219.218485][ T6052] bcachefs (loop0): Version upgrade required: [ 219.218485][ T6052] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 219.218485][ T6052] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 219.218485][ T6052] 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 [ 219.248148][ T6052] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 219.248164][ T6052] 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 [ 219.248174][ T6052] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 219.265195][ T6052] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 219.265195][ T6052] btree=dirents level=0 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 [ 219.275769][ T6052] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 219.275783][ T6052] 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 [ 219.275792][ T6052] 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 [ 219.295711][ T6052] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 219.295711][ T6052] 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 [ 219.310819][ T6052] bcachefs (loop0): accounting_read... done [ 219.313886][ T6052] bcachefs (loop0): alloc_read... done [ 219.316712][ T6052] bcachefs (loop0): snapshots_read... done [ 219.321512][ T6052] bcachefs (loop0): check_allocations... [ 219.323088][ T6052] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 219.323101][ T6052] 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 [ 219.337144][ T6052] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 219.337160][ T6052] 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 [ 219.351400][ T6052] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 219.351417][ T6052] 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 [ 219.365018][ T6052] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 219.365032][ T6052] 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 [ 219.377480][ T6052] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 219.377495][ T6052] 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 [ 219.390464][ T6052] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.394564][ T6052] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.403135][ T6052] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.406904][ T6052] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.411895][ T6052] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.415857][ T6052] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.423904][ T6052] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.428070][ T6052] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.433298][ T6052] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.437262][ T6052] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.444200][ T6052] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.448153][ T6052] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.454637][ T6052] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.458575][ T6052] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.465558][ T6052] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.471149][ T6052] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 219.475916][ T6052] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.482693][ T6052] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.487781][ T6052] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.492479][ T6052] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.497414][ T6052] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.506205][ T6052] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.511482][ T6052] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.515580][ T6052] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.522729][ T6052] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.526903][ T6052] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.532680][ T6052] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.536951][ T6052] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.544236][ T6052] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.548477][ T6052] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.553736][ T6052] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.557743][ T6052] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.564726][ T6052] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.568998][ T6052] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.573850][ T6052] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.577857][ T6052] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.585611][ T6052] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.590363][ T6052] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.594972][ T6052] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.601231][ T6052] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.607684][ T6052] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.616798][ T6052] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.623564][ T6052] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.627667][ T6052] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.632698][ T6052] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.636663][ T6052] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.643727][ T6052] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 219.647857][ T6052] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 219.653021][ T6052] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 219.657169][ T6052] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 219.664023][ T6052] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 219.669043][ T6052] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 219.673917][ T6052] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 219.678114][ T6052] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 219.685238][ T6052] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 219.692121][ T6052] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 219.696155][ T6052] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 219.701252][ T6052] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 219.710282][ T6052] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 219.715043][ T6052] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 219.720795][ T6052] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 219.724864][ T6052] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 219.731615][ T6052] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 219.735727][ T6052] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 219.741698][ T6052] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 219.746802][ T6052] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.751690][ T6052] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.756240][ T6052] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.761952][ T6052] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.766466][ T6052] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.777284][ T6052] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.783963][ T6052] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.787991][ T6052] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.793026][ T6052] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.797152][ T6052] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.804900][ T6052] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.812478][ T6052] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.817122][ T6052] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.823333][ T6052] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.828089][ T6052] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 219.832478][ T6052] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 219.837837][ T6052] done [ 219.842185][ T6052] bcachefs (loop0): going read-write [ 219.850300][ T6052] bcachefs (loop0): journal_replay... done [ 219.914285][ T6052] bcachefs (loop0): check_alloc_info... done [ 219.925113][ T6052] bcachefs (loop0): check_lrus... done [ 219.928247][ T6052] bcachefs (loop0): check_btree_backpointers... done [ 219.933123][ T6052] bcachefs (loop0): check_backpointers_to_extents... [ 219.933762][ T6052] bcachefs (loop0): cannot start: journal seq overflow [ 219.939301][ T6052] bcachefs (loop0): fatal error - emergency read only [ 219.941970][ T9] bcachefs (loop0): going read-only [ 219.944028][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 219.948002][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 219.954823][ T6052] bcachefs (loop0): bch2_check_backpointers_to_extents(): error journal_shutdown [ 219.959155][ T6052] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 219.962184][ T6052] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 219.966563][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 219.972503][ T6052] bcachefs (loop0): shutting down [ 219.999279][ T9] bcachefs (loop0): finished waiting for writes to stop [ 220.002106][ T9] bcachefs (loop0): done going read-only, filesystem not clean [ 220.050914][ T6052] bcachefs (loop0): shutdown complete [ 220.631847][ T6052] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 220.961424][ T6062] loop0: detected capacity change from 0 to 32768 [ 221.041901][ T6062] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 221.051059][ T6062] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 221.054863][ T6062] bcachefs (loop0): Version upgrade required: [ 221.054863][ T6062] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 221.054863][ T6062] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 221.054863][ T6062] 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 [ 221.086217][ T6062] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 221.086233][ T6062] 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 [ 221.086242][ T6062] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 221.102574][ T6062] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 221.102574][ T6062] btree=dirents level=0 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 [ 221.113743][ T6062] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 221.113759][ T6062] 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 [ 221.113768][ T6062] 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 [ 221.132761][ T6062] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 221.132761][ T6062] 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 [ 221.149236][ T6062] bcachefs (loop0): accounting_read... done [ 221.151739][ T6062] bcachefs (loop0): alloc_read... done [ 221.153989][ T6062] bcachefs (loop0): snapshots_read... done [ 221.156494][ T6062] bcachefs (loop0): check_allocations... [ 221.158104][ T6062] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 221.158117][ T6062] 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 [ 221.174288][ T6062] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 221.174304][ T6062] 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 [ 221.187091][ T6062] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 221.187106][ T6062] 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 [ 221.198358][ T6062] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 221.198374][ T6062] 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 [ 221.212247][ T6062] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 221.212270][ T6062] 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 [ 221.225177][ T6062] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.230287][ T6062] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.234991][ T6062] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.242207][ T6062] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.247739][ T6062] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.252015][ T6062] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.256495][ T6062] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.262812][ T6062] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.267248][ T6062] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.271404][ T6062] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.276001][ T6062] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.281873][ T6062] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.286358][ T6062] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.291316][ T6062] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.295829][ T6062] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.301724][ T6062] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 221.306084][ T6062] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.310407][ T6062] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.315053][ T6062] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.321192][ T6062] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.325915][ T6062] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.330673][ T6062] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.335343][ T6062] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.342114][ T6062] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.349540][ T6062] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.353649][ T6062] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.358365][ T6062] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.364543][ T6062] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.370263][ T6062] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.374419][ T6062] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.381282][ T6062] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.385520][ T6062] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.390326][ T6062] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.394155][ T6062] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.398359][ T6062] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.406146][ T6062] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.411067][ T6062] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.415067][ T6062] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.422357][ T6062] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.427125][ T6062] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.432403][ T6062] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.436350][ T6062] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.443917][ T6062] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.452081][ T6062] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.456653][ T6062] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.462578][ T6062] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.467306][ T6062] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.472394][ T6062] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.477387][ T6062] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 221.483713][ T6062] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 221.488911][ T6062] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 221.493906][ T6062] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 221.500649][ T6062] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 221.504683][ T6062] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 221.509820][ T6062] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 221.514468][ T6062] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 221.518376][ T6062] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 221.525392][ T6062] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 221.530677][ T6062] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 221.535806][ T6062] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 221.542902][ T6062] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 221.549934][ T6062] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 221.554840][ T6062] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 221.562174][ T6062] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 221.566771][ T6062] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 221.572728][ T6062] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.576983][ T6062] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.584185][ T6062] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.588464][ T6062] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.593485][ T6062] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.597769][ T6062] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.604575][ T6062] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.608626][ T6062] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.615583][ T6062] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.622424][ T6062] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.627171][ T6062] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.631723][ T6062] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.636172][ T6062] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.641879][ T6062] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.646609][ T6062] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.653079][ T6062] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.660975][ T6062] done [ 221.663780][ T6062] bcachefs (loop0): going read-write [ 221.669033][ T6062] bcachefs (loop0): journal_replay... done [ 221.722052][ T6062] bcachefs (loop0): check_alloc_info... done [ 221.729320][ T6062] bcachefs (loop0): check_lrus... done [ 221.732302][ T6062] bcachefs (loop0): check_btree_backpointers... done [ 221.736087][ T6062] bcachefs (loop0): check_backpointers_to_extents... done [ 221.747682][ T6062] bcachefs (loop0): check_extents_to_backpointers... [ 221.749231][ T6062] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 221.757857][ T6062] done [ 221.762772][ T6062] bcachefs (loop0): check_alloc_to_lru_refs... [ 221.763853][ T6062] bcachefs (loop0): missing fragmentation lru entry [ 221.763864][ T6062] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 221.763871][ T6062] gen 0 oldest_gen 0 data_type btree [ 221.763877][ T6062] journal_seq_nonempty 4 [ 221.763883][ T6062] journal_seq_empty 0 [ 221.763888][ T6062] need_discard 1 [ 221.763893][ T6062] need_inc_gen 1 [ 221.763898][ T6062] dirty_sectors 32 [ 221.763903][ T6062] stripe_sectors 0 [ 221.763909][ T6062] cached_sectors 0 [ 221.763915][ T6062] stripe 0 [ 221.763920][ T6062] stripe_redundancy 0 [ 221.763926][ T6062] io_time[READ] 1 [ 221.763932][ T6062] io_time[WRITE] 256 [ 221.763938][ T6062] fragmentation 268435456 [ 221.763943][ T6062] bp_start 8 [ 221.763948][ T6062] , fixing [ 221.807862][ T6062] bcachefs (loop0): missing fragmentation lru entry [ 221.807877][ T6062] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 221.807884][ T6062] gen 0 oldest_gen 0 data_type btree [ 221.807889][ T6062] journal_seq_nonempty 4 [ 221.807894][ T6062] journal_seq_empty 0 [ 221.807900][ T6062] need_discard 1 [ 221.807905][ T6062] need_inc_gen 1 [ 221.807911][ T6062] dirty_sectors 32 [ 221.807916][ T6062] stripe_sectors 0 [ 221.807922][ T6062] cached_sectors 0 [ 221.807928][ T6062] stripe 0 [ 221.807934][ T6062] stripe_redundancy 0 [ 221.807940][ T6062] io_time[READ] 1 [ 221.807946][ T6062] io_time[WRITE] 512 [ 221.807951][ T6062] fragmentation 268435456 [ 221.807957][ T6062] bp_start 8 [ 221.807963][ T6062] , fixing [ 221.845990][ T6062] bcachefs (loop0): missing fragmentation lru entry [ 221.846004][ T6062] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 221.846010][ T6062] gen 0 oldest_gen 0 data_type btree [ 221.846017][ T6062] journal_seq_nonempty 1 [ 221.846022][ T6062] journal_seq_empty 0 [ 221.846028][ T6062] need_discard 1 [ 221.846034][ T6062] need_inc_gen 1 [ 221.846039][ T6062] dirty_sectors 32 [ 221.846045][ T6062] stripe_sectors 0 [ 221.846051][ T6062] cached_sectors 0 [ 221.846056][ T6062] stripe 0 [ 221.846062][ T6062] stripe_redundancy 0 [ 221.846068][ T6062] io_time[READ] 1 [ 221.846073][ T6062] io_time[WRITE] 1 [ 221.846079][ T6062] fragmentation 268435456 [ 221.846085][ T6062] bp_start 8 [ 221.846090][ T6062] , fixing [ 221.892054][ T6062] bcachefs (loop0): missing fragmentation lru entry [ 221.892069][ T6062] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 221.892076][ T6062] gen 0 oldest_gen 0 data_type btree [ 221.892082][ T6062] journal_seq_nonempty 0 [ 221.892088][ T6062] journal_seq_empty 0 [ 221.892099][ T6062] need_discard 0 [ 221.892104][ T6062] need_inc_gen 0 [ 221.892109][ T6062] dirty_sectors 32 [ 221.892114][ T6062] stripe_sectors 0 [ 221.892119][ T6062] cached_sectors 0 [ 221.892124][ T6062] stripe 0 [ 221.892130][ T6062] stripe_redundancy 0 [ 221.892136][ T6062] io_time[READ] 0 [ 221.892142][ T6062] io_time[WRITE] 0 [ 221.892147][ T6062] fragmentation 268435456 [ 221.892153][ T6062] bp_start 8 [ 221.892158][ T6062] , fixing [ 221.931092][ T6062] bcachefs (loop0): missing fragmentation lru entry [ 221.931106][ T6062] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 221.931112][ T6062] gen 0 oldest_gen 0 data_type btree [ 221.931117][ T6062] journal_seq_nonempty 0 [ 221.931122][ T6062] journal_seq_empty 0 [ 221.931126][ T6062] need_discard 0 [ 221.931131][ T6062] need_inc_gen 0 [ 221.931135][ T6062] dirty_sectors 32 [ 221.931140][ T6062] stripe_sectors 0 [ 221.931144][ T6062] cached_sectors 0 [ 221.931149][ T6062] stripe 0 [ 221.931154][ T6062] stripe_redundancy 0 [ 221.931158][ T6062] io_time[READ] 0 [ 221.931163][ T6062] io_time[WRITE] 0 [ 221.931167][ T6062] fragmentation 268435456 [ 221.931172][ T6062] bp_start 8 [ 221.931177][ T6062] , fixing [ 221.972221][ T6062] bcachefs (loop0): missing fragmentation lru entry [ 221.972235][ T6062] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 221.972240][ T6062] gen 0 oldest_gen 0 data_type btree [ 221.972246][ T6062] journal_seq_nonempty 7 [ 221.972251][ T6062] journal_seq_empty 0 [ 221.972255][ T6062] need_discard 1 [ 221.972261][ T6062] need_inc_gen 1 [ 221.972266][ T6062] dirty_sectors 32 [ 221.972272][ T6062] stripe_sectors 0 [ 221.972278][ T6062] cached_sectors 0 [ 221.972284][ T6062] stripe 0 [ 221.972291][ T6062] stripe_redundancy 0 [ 221.972297][ T6062] io_time[READ] 1 [ 221.972303][ T6062] io_time[WRITE] 1280 [ 221.972308][ T6062] fragmentation 268435456 [ 221.972313][ T6062] bp_start 8 [ 221.972318][ T6062] , fixing [ 222.013462][ T6062] done [ 222.016709][ T6062] bcachefs (loop0): bucket_gens_init... done [ 222.022317][ T6062] bcachefs (loop0): check_snapshot_trees... done [ 222.025574][ T6062] bcachefs (loop0): check_snapshots... [ 222.025982][ T6062] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 222.025993][ T6062] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 222.038639][ T6062] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 222.040178][ T6062] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 222.051935][ T6062] bcachefs (loop0): cannot start: journal seq overflow [ 222.054706][ T6062] bcachefs (loop0): fatal error - emergency read only [ 222.057380][ T9] bcachefs (loop0): going read-only [ 222.063155][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 222.067285][ T6062] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 222.072795][ T6062] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 222.075784][ T6062] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 222.081511][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 222.086332][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 222.090896][ T6062] bcachefs (loop0): shutting down [ 222.119345][ T9] bcachefs (loop0): finished waiting for writes to stop [ 222.123504][ T9] bcachefs (loop0): done going read-only, filesystem not clean [ 222.170072][ T6062] bcachefs (loop0): shutdown complete [ 222.704905][ T6062] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 223.017739][ T6072] loop0: detected capacity change from 0 to 32768 [ 223.078313][ T6072] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 223.087190][ T6072] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 223.093120][ T6072] bcachefs (loop0): Version upgrade required: [ 223.093120][ T6072] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 223.093120][ T6072] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 223.093120][ T6072] 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 [ 223.127525][ T6072] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 223.127542][ T6072] 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 [ 223.127551][ T6072] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 223.143871][ T6072] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 223.143871][ T6072] btree=dirents level=0 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 [ 223.154109][ T6072] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 223.154123][ T6072] 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 [ 223.154132][ T6072] 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 [ 223.172673][ T6072] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 223.172673][ T6072] 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 [ 223.188532][ T6072] bcachefs (loop0): accounting_read... done [ 223.191455][ T6072] bcachefs (loop0): alloc_read... done [ 223.193689][ T6072] bcachefs (loop0): snapshots_read... done [ 223.196175][ T6072] bcachefs (loop0): check_allocations... [ 223.197609][ T6072] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 223.197622][ T6072] 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 [ 223.213687][ T6072] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 223.213702][ T6072] 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 [ 223.226693][ T6072] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 223.226707][ T6072] 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 [ 223.240370][ T6072] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 223.240382][ T6072] 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 [ 223.252083][ T6072] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 223.252099][ T6072] 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 [ 223.263971][ T6072] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.267969][ T6072] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.272448][ T6072] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.276248][ T6072] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.282213][ T6072] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.285979][ T6072] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.292946][ T6072] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.296836][ T6072] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.303734][ T6072] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.307788][ T6072] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.312422][ T6072] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.316308][ T6072] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.322916][ T6072] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.326787][ T6072] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.331449][ T6072] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.335351][ T6072] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 223.342914][ T6072] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.347185][ T6072] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.352183][ T6072] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.356280][ T6072] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.362695][ T6072] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.366605][ T6072] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.373775][ T6072] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.377802][ T6072] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.384317][ T6072] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.388324][ T6072] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.395269][ T6072] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.401328][ T6072] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.405805][ T6072] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.410174][ T6072] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.414723][ T6072] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.418474][ T6072] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.424963][ T6072] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.428928][ T6072] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.433296][ T6072] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.437181][ T6072] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.443536][ T6072] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.448540][ T6072] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.455348][ T6072] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.461091][ T6072] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.465639][ T6072] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.469819][ T6072] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.474232][ T6072] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.477982][ T6072] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.484196][ T6072] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.488229][ T6072] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.495382][ T6072] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 223.501615][ T6072] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 223.506648][ T6072] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 223.511060][ T6072] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 223.515783][ T6072] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 223.522828][ T6072] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 223.527572][ T6072] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 223.532259][ T6072] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 223.536917][ T6072] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 223.543834][ T6072] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 223.547921][ T6072] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 223.552930][ T6072] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 223.556983][ T6072] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 223.564694][ T6072] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 223.569730][ T6072] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 223.573981][ T6072] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 223.581261][ T6072] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 223.585433][ T6072] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 223.590554][ T6072] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 223.598272][ T6072] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.604514][ T6072] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.610374][ T6072] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.614454][ T6072] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.621193][ T6072] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.625175][ T6072] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.630280][ T6072] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.634297][ T6072] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.641085][ T6072] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.645297][ T6072] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.650319][ T6072] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.654360][ T6072] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.659459][ T6072] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.663426][ T6072] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.668052][ T6072] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 223.675499][ T6072] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 223.681206][ T6072] done [ 223.683425][ T6072] bcachefs (loop0): going read-write [ 223.703117][ T6072] bcachefs (loop0): journal_replay... done [ 223.736007][ T6072] bcachefs (loop0): check_alloc_info... done [ 223.743404][ T6072] bcachefs (loop0): check_lrus... done [ 223.746382][ T6072] bcachefs (loop0): check_btree_backpointers... done [ 223.752676][ T6072] bcachefs (loop0): check_backpointers_to_extents... done [ 223.760671][ T6072] bcachefs (loop0): check_extents_to_backpointers... [ 223.761959][ T6072] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 223.768495][ T6072] done [ 223.776623][ T6072] bcachefs (loop0): check_alloc_to_lru_refs... [ 223.777718][ T6072] bcachefs (loop0): missing fragmentation lru entry [ 223.777729][ T6072] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 223.777736][ T6072] gen 0 oldest_gen 0 data_type btree [ 223.777743][ T6072] journal_seq_nonempty 4 [ 223.777749][ T6072] journal_seq_empty 0 [ 223.777755][ T6072] need_discard 1 [ 223.777760][ T6072] need_inc_gen 1 [ 223.777766][ T6072] dirty_sectors 32 [ 223.777771][ T6072] stripe_sectors 0 [ 223.777777][ T6072] cached_sectors 0 [ 223.777783][ T6072] stripe 0 [ 223.777789][ T6072] stripe_redundancy 0 [ 223.777795][ T6072] io_time[READ] 1 [ 223.777801][ T6072] io_time[WRITE] 256 [ 223.777806][ T6072] fragmentation 268435456 [ 223.777812][ T6072] bp_start 8 [ 223.777818][ T6072] , fixing [ 223.822328][ T6072] bcachefs (loop0): missing fragmentation lru entry [ 223.822343][ T6072] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 223.822350][ T6072] gen 0 oldest_gen 0 data_type btree [ 223.822357][ T6072] journal_seq_nonempty 4 [ 223.822362][ T6072] journal_seq_empty 0 [ 223.822368][ T6072] need_discard 1 [ 223.822373][ T6072] need_inc_gen 1 [ 223.822379][ T6072] dirty_sectors 32 [ 223.822385][ T6072] stripe_sectors 0 [ 223.822390][ T6072] cached_sectors 0 [ 223.822396][ T6072] stripe 0 [ 223.822401][ T6072] stripe_redundancy 0 [ 223.822407][ T6072] io_time[READ] 1 [ 223.822412][ T6072] io_time[WRITE] 512 [ 223.822418][ T6072] fragmentation 268435456 [ 223.822424][ T6072] bp_start 8 [ 223.822430][ T6072] , fixing [ 223.861530][ T6072] bcachefs (loop0): missing fragmentation lru entry [ 223.861544][ T6072] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 223.861552][ T6072] gen 0 oldest_gen 0 data_type btree [ 223.861558][ T6072] journal_seq_nonempty 1 [ 223.861565][ T6072] journal_seq_empty 0 [ 223.861571][ T6072] need_discard 1 [ 223.861576][ T6072] need_inc_gen 1 [ 223.861581][ T6072] dirty_sectors 32 [ 223.861587][ T6072] stripe_sectors 0 [ 223.861592][ T6072] cached_sectors 0 [ 223.861598][ T6072] stripe 0 [ 223.861603][ T6072] stripe_redundancy 0 [ 223.861610][ T6072] io_time[READ] 1 [ 223.861615][ T6072] io_time[WRITE] 1 [ 223.861621][ T6072] fragmentation 268435456 [ 223.861627][ T6072] bp_start 8 [ 223.861633][ T6072] , fixing [ 223.904886][ T6072] bcachefs (loop0): missing fragmentation lru entry [ 223.904901][ T6072] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 223.904908][ T6072] gen 0 oldest_gen 0 data_type btree [ 223.904914][ T6072] journal_seq_nonempty 0 [ 223.904919][ T6072] journal_seq_empty 0 [ 223.904925][ T6072] need_discard 0 [ 223.904931][ T6072] need_inc_gen 0 [ 223.904937][ T6072] dirty_sectors 32 [ 223.904944][ T6072] stripe_sectors 0 [ 223.904950][ T6072] cached_sectors 0 [ 223.904955][ T6072] stripe 0 [ 223.904961][ T6072] stripe_redundancy 0 [ 223.904966][ T6072] io_time[READ] 0 [ 223.904972][ T6072] io_time[WRITE] 0 [ 223.904978][ T6072] fragmentation 268435456 [ 223.904985][ T6072] bp_start 8 [ 223.904991][ T6072] , fixing [ 223.945439][ T6072] bcachefs (loop0): missing fragmentation lru entry [ 223.945454][ T6072] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 223.945462][ T6072] gen 0 oldest_gen 0 data_type btree [ 223.945469][ T6072] journal_seq_nonempty 0 [ 223.945483][ T6072] journal_seq_empty 0 [ 223.945489][ T6072] need_discard 0 [ 223.945495][ T6072] need_inc_gen 0 [ 223.945502][ T6072] dirty_sectors 32 [ 223.945508][ T6072] stripe_sectors 0 [ 223.945514][ T6072] cached_sectors 0 [ 223.945521][ T6072] stripe 0 [ 223.945527][ T6072] stripe_redundancy 0 [ 223.945534][ T6072] io_time[READ] 0 [ 223.945540][ T6072] io_time[WRITE] 0 [ 223.945546][ T6072] fragmentation 268435456 [ 223.945552][ T6072] bp_start 8 [ 223.945557][ T6072] , fixing [ 223.984893][ T6072] bcachefs (loop0): missing fragmentation lru entry [ 223.984908][ T6072] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 223.984914][ T6072] gen 0 oldest_gen 0 data_type btree [ 223.984920][ T6072] journal_seq_nonempty 7 [ 223.984926][ T6072] journal_seq_empty 0 [ 223.984932][ T6072] need_discard 1 [ 223.984938][ T6072] need_inc_gen 1 [ 223.984945][ T6072] dirty_sectors 32 [ 223.984951][ T6072] stripe_sectors 0 [ 223.984958][ T6072] cached_sectors 0 [ 223.984964][ T6072] stripe 0 [ 223.984971][ T6072] stripe_redundancy 0 [ 223.984977][ T6072] io_time[READ] 1 [ 223.984983][ T6072] io_time[WRITE] 1280 [ 223.984990][ T6072] fragmentation 268435456 [ 223.984996][ T6072] bp_start 8 [ 223.985003][ T6072] , fixing [ 224.029972][ T6072] done [ 224.032245][ T6072] bcachefs (loop0): bucket_gens_init... done [ 224.036320][ T6072] bcachefs (loop0): check_snapshot_trees... done [ 224.042097][ T6072] bcachefs (loop0): check_snapshots... [ 224.042539][ T6072] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 224.042556][ T6072] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 224.055108][ T6072] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 224.055122][ T6072] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 224.068510][ T6072] bcachefs (loop0): cannot start: journal seq overflow [ 224.071537][ T6072] bcachefs (loop0): fatal error - emergency read only [ 224.074251][ T5486] bcachefs (loop0): going read-only [ 224.076423][ T5486] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 224.082922][ T6072] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 224.086775][ T6072] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 224.091355][ T5486] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 224.095919][ T6072] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 224.102314][ T5486] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 224.106135][ T6072] bcachefs (loop0): shutting down [ 224.139270][ T5486] bcachefs (loop0): finished waiting for writes to stop [ 224.142039][ T5486] bcachefs (loop0): done going read-only, filesystem not clean [ 224.174112][ T6072] bcachefs (loop0): shutdown complete [ 224.706444][ T6072] bcachefs: bch2_fs_get_tree() error: journal_shutdown 2025/04/16 18:55:00 executed programs: 45 [ 225.031525][ T6083] loop0: detected capacity change from 0 to 32768 [ 225.105673][ T6083] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 225.112743][ T6083] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 225.116554][ T6083] bcachefs (loop0): Version upgrade required: [ 225.116554][ T6083] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 225.116554][ T6083] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 225.116554][ T6083] 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 [ 225.151497][ T6083] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 225.151515][ T6083] 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 [ 225.151524][ T6083] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 225.167098][ T6083] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 225.167098][ T6083] btree=dirents level=0 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 [ 225.177484][ T6083] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 225.177500][ T6083] 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 [ 225.177510][ T6083] 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 [ 225.195932][ T6083] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 225.195932][ T6083] 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 [ 225.212898][ T6083] bcachefs (loop0): accounting_read... done [ 225.215498][ T6083] bcachefs (loop0): alloc_read... done [ 225.217965][ T6083] bcachefs (loop0): snapshots_read... done [ 225.222553][ T6083] bcachefs (loop0): check_allocations... [ 225.223877][ T6083] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 225.223888][ T6083] 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 [ 225.242321][ T6083] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 225.242339][ T6083] 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 [ 225.253109][ T6083] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 225.253124][ T6083] 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 [ 225.266042][ T6083] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 225.266057][ T6083] 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 [ 225.277912][ T6083] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 225.277929][ T6083] 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 [ 225.290268][ T6083] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.294120][ T6083] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.301047][ T6083] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.304828][ T6083] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.309604][ T6083] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.313485][ T6083] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.317785][ T6083] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.325037][ T6083] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.329751][ T6083] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.333573][ T6083] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.342456][ T6083] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.346220][ T6083] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.350639][ T6083] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.354361][ T6083] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.361215][ T6083] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.365137][ T6083] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 225.370105][ T6083] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.374189][ T6083] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.381307][ T6083] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.385502][ T6083] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.390535][ T6083] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.394849][ T6083] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.401216][ T6083] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.405176][ T6083] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.409961][ T6083] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.413977][ T6083] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.421120][ T6083] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.425234][ T6083] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.431304][ T6083] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.435498][ T6083] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.444966][ T6083] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.449972][ T6083] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.454599][ T6083] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.460888][ T6083] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.465458][ T6083] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.469721][ T6083] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.474039][ T6083] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.478022][ T6083] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.484749][ T6083] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.488535][ T6083] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.493354][ T6083] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.497349][ T6083] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.503908][ T6083] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.507897][ T6083] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.513008][ T6083] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.516735][ T6083] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.523458][ T6083] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.527651][ T6083] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.533665][ T6083] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 225.537887][ T6083] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 225.547662][ T6083] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 225.552640][ T6083] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 225.557291][ T6083] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 225.563454][ T6083] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 225.568205][ T6083] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 225.573358][ T6083] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 225.577425][ T6083] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 225.584390][ T6083] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 225.588536][ T6083] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 225.593482][ T6083] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 225.598408][ T6083] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 225.604968][ T6083] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 225.610174][ T6083] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 225.614424][ T6083] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 225.621168][ T6083] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 225.627130][ T6083] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.631714][ T6083] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.636363][ T6083] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.642509][ T6083] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.650943][ T6083] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.655032][ T6083] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.661578][ T6083] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.665587][ T6083] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.670570][ T6083] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.674586][ T6083] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.681200][ T6083] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.685281][ T6083] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.690391][ T6083] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.694596][ T6083] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.701365][ T6083] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.705456][ T6083] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.711611][ T6083] done [ 225.713697][ T6083] bcachefs (loop0): going read-write [ 225.718981][ T6083] bcachefs (loop0): journal_replay... done [ 225.773415][ T6083] bcachefs (loop0): check_alloc_info... done [ 225.782605][ T6083] bcachefs (loop0): check_lrus... done [ 225.785881][ T6083] bcachefs (loop0): check_btree_backpointers... done [ 225.790235][ T6083] bcachefs (loop0): check_backpointers_to_extents... done [ 225.798012][ T6083] bcachefs (loop0): check_extents_to_backpointers... [ 225.801798][ T6083] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 225.808472][ T6083] done [ 225.811453][ T6083] bcachefs (loop0): check_alloc_to_lru_refs... [ 225.812652][ T6083] bcachefs (loop0): missing fragmentation lru entry [ 225.812665][ T6083] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 225.812671][ T6083] gen 0 oldest_gen 0 data_type btree [ 225.812677][ T6083] journal_seq_nonempty 4 [ 225.812683][ T6083] journal_seq_empty 0 [ 225.812689][ T6083] need_discard 1 [ 225.812695][ T6083] need_inc_gen 1 [ 225.812701][ T6083] dirty_sectors 32 [ 225.812706][ T6083] stripe_sectors 0 [ 225.812712][ T6083] cached_sectors 0 [ 225.812717][ T6083] stripe 0 [ 225.812723][ T6083] stripe_redundancy 0 [ 225.812728][ T6083] io_time[READ] 1 [ 225.812734][ T6083] io_time[WRITE] 256 [ 225.812740][ T6083] fragmentation 268435456 [ 225.812745][ T6083] bp_start 8 [ 225.812751][ T6083] , fixing [ 225.861869][ T6083] bcachefs (loop0): missing fragmentation lru entry [ 225.861883][ T6083] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 225.861890][ T6083] gen 0 oldest_gen 0 data_type btree [ 225.861897][ T6083] journal_seq_nonempty 4 [ 225.861902][ T6083] journal_seq_empty 0 [ 225.861909][ T6083] need_discard 1 [ 225.861914][ T6083] need_inc_gen 1 [ 225.861920][ T6083] dirty_sectors 32 [ 225.861926][ T6083] stripe_sectors 0 [ 225.861931][ T6083] cached_sectors 0 [ 225.861936][ T6083] stripe 0 [ 225.861942][ T6083] stripe_redundancy 0 [ 225.861948][ T6083] io_time[READ] 1 [ 225.861954][ T6083] io_time[WRITE] 512 [ 225.861960][ T6083] fragmentation 268435456 [ 225.861965][ T6083] bp_start 8 [ 225.861971][ T6083] , fixing [ 225.903035][ T6083] bcachefs (loop0): missing fragmentation lru entry [ 225.903049][ T6083] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 225.903056][ T6083] gen 0 oldest_gen 0 data_type btree [ 225.903062][ T6083] journal_seq_nonempty 1 [ 225.903068][ T6083] journal_seq_empty 0 [ 225.903073][ T6083] need_discard 1 [ 225.903079][ T6083] need_inc_gen 1 [ 225.903084][ T6083] dirty_sectors 32 [ 225.903090][ T6083] stripe_sectors 0 [ 225.903095][ T6083] cached_sectors 0 [ 225.903101][ T6083] stripe 0 [ 225.903107][ T6083] stripe_redundancy 0 [ 225.903113][ T6083] io_time[READ] 1 [ 225.903119][ T6083] io_time[WRITE] 1 [ 225.903124][ T6083] fragmentation 268435456 [ 225.903129][ T6083] bp_start 8 [ 225.903135][ T6083] , fixing [ 225.944371][ T6083] bcachefs (loop0): missing fragmentation lru entry [ 225.944386][ T6083] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 225.944392][ T6083] gen 0 oldest_gen 0 data_type btree [ 225.944398][ T6083] journal_seq_nonempty 0 [ 225.944404][ T6083] journal_seq_empty 0 [ 225.944410][ T6083] need_discard 0 [ 225.944416][ T6083] need_inc_gen 0 [ 225.944421][ T6083] dirty_sectors 32 [ 225.944427][ T6083] stripe_sectors 0 [ 225.944433][ T6083] cached_sectors 0 [ 225.944444][ T6083] stripe 0 [ 225.944450][ T6083] stripe_redundancy 0 [ 225.944456][ T6083] io_time[READ] 0 [ 225.944462][ T6083] io_time[WRITE] 0 [ 225.944467][ T6083] fragmentation 268435456 [ 225.944472][ T6083] bp_start 8 [ 225.944477][ T6083] , fixing [ 225.987697][ T6083] bcachefs (loop0): missing fragmentation lru entry [ 225.987710][ T6083] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 225.987717][ T6083] gen 0 oldest_gen 0 data_type btree [ 225.987722][ T6083] journal_seq_nonempty 0 [ 225.987728][ T6083] journal_seq_empty 0 [ 225.987734][ T6083] need_discard 0 [ 225.987739][ T6083] need_inc_gen 0 [ 225.987744][ T6083] dirty_sectors 32 [ 225.987749][ T6083] stripe_sectors 0 [ 225.987754][ T6083] cached_sectors 0 [ 225.987760][ T6083] stripe 0 [ 225.987766][ T6083] stripe_redundancy 0 [ 225.987771][ T6083] io_time[READ] 0 [ 225.987777][ T6083] io_time[WRITE] 0 [ 225.987783][ T6083] fragmentation 268435456 [ 225.987789][ T6083] bp_start 8 [ 225.987793][ T6083] , fixing [ 226.027283][ T6083] bcachefs (loop0): missing fragmentation lru entry [ 226.027297][ T6083] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 226.027303][ T6083] gen 0 oldest_gen 0 data_type btree [ 226.027309][ T6083] journal_seq_nonempty 7 [ 226.027314][ T6083] journal_seq_empty 0 [ 226.027320][ T6083] need_discard 1 [ 226.027326][ T6083] need_inc_gen 1 [ 226.027332][ T6083] dirty_sectors 32 [ 226.027337][ T6083] stripe_sectors 0 [ 226.027342][ T6083] cached_sectors 0 [ 226.027347][ T6083] stripe 0 [ 226.027353][ T6083] stripe_redundancy 0 [ 226.027358][ T6083] io_time[READ] 1 [ 226.027363][ T6083] io_time[WRITE] 1280 [ 226.027369][ T6083] fragmentation 268435456 [ 226.027375][ T6083] bp_start 8 [ 226.027380][ T6083] , fixing [ 226.069538][ T6083] done [ 226.071698][ T6083] bcachefs (loop0): bucket_gens_init... done [ 226.075575][ T6083] bcachefs (loop0): check_snapshot_trees... done [ 226.080871][ T6083] bcachefs (loop0): check_snapshots... [ 226.081299][ T6083] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 226.081310][ T6083] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 226.094065][ T6083] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 226.094081][ T6083] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 226.107169][ T6083] bcachefs (loop0): cannot start: journal seq overflow [ 226.110005][ T6083] bcachefs (loop0): fatal error - emergency read only [ 226.112740][ T5486] bcachefs (loop0): going read-only [ 226.114802][ T5486] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 226.121397][ T6083] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 226.125088][ T6083] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 226.128041][ T6083] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 226.132208][ T5486] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 226.137007][ T5486] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 226.143294][ T6083] bcachefs (loop0): shutting down [ 226.169468][ T5486] bcachefs (loop0): finished waiting for writes to stop [ 226.172462][ T5486] bcachefs (loop0): done going read-only, filesystem not clean [ 226.205567][ T6083] bcachefs (loop0): shutdown complete [ 226.756001][ T6083] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 227.094469][ T6093] loop0: detected capacity change from 0 to 32768 [ 227.184293][ T6093] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 227.191676][ T6093] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 227.195561][ T6093] bcachefs (loop0): Version upgrade required: [ 227.195561][ T6093] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 227.195561][ T6093] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 227.195561][ T6093] 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 [ 227.229336][ T6093] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 227.229354][ T6093] 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 [ 227.229365][ T6093] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 227.245243][ T6093] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 227.245243][ T6093] btree=dirents level=0 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 [ 227.256888][ T6093] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 227.256903][ T6093] 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 [ 227.256912][ T6093] 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 [ 227.275324][ T6093] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 227.275324][ T6093] 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 [ 227.292804][ T6093] bcachefs (loop0): accounting_read... done [ 227.295461][ T6093] bcachefs (loop0): alloc_read... done [ 227.297817][ T6093] bcachefs (loop0): snapshots_read... done [ 227.302385][ T6093] bcachefs (loop0): check_allocations... [ 227.304067][ T6093] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 227.304081][ T6093] 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 [ 227.320853][ T6093] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 227.320870][ T6093] 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 [ 227.333236][ T6093] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 227.333252][ T6093] 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 [ 227.345495][ T6093] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 227.345511][ T6093] 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 [ 227.357922][ T6093] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 227.357938][ T6093] 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 [ 227.370928][ T6093] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.374766][ T6093] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.381165][ T6093] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.387049][ T6093] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.392568][ T6093] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.396455][ T6093] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.403036][ T6093] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.406974][ T6093] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.412146][ T6093] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.416071][ T6093] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.422229][ T6093] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.426255][ T6093] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.431855][ T6093] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.435841][ T6093] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.443263][ T6093] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.447186][ T6093] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 227.453018][ T6093] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.457213][ T6093] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.463785][ T6093] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.468017][ T6093] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.473627][ T6093] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.477835][ T6093] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.484305][ T6093] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.491553][ T6093] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.496287][ T6093] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.501949][ T6093] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.506504][ T6093] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.511115][ T6093] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.515519][ T6093] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.521041][ T6093] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.525434][ T6093] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.530464][ T6093] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.534772][ T6093] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.538527][ T6093] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.544892][ T6093] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.548539][ T6093] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.555406][ T6093] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.560136][ T6093] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.564439][ T6093] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.568242][ T6093] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.574040][ T6093] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.577771][ T6093] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.583362][ T6093] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.587132][ T6093] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.594919][ T6093] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.600098][ T6093] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.604688][ T6093] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.610909][ T6093] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.615666][ T6093] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 227.621211][ T6093] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 227.625812][ T6093] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 227.632032][ T6093] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 227.636306][ T6093] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 227.641333][ T6093] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 227.646019][ T6093] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 227.651886][ T6093] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 227.655683][ T6093] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 227.662211][ T6093] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 227.666088][ T6093] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 227.671796][ T6093] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 227.676436][ T6093] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 227.681295][ T6093] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 227.685615][ T6093] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 227.690903][ T6093] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 227.697544][ T6093] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 227.703566][ T6093] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.707301][ T6093] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.712667][ T6093] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.716467][ T6093] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.722123][ T6093] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.725830][ T6093] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.731562][ T6093] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.735256][ T6093] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.740896][ T6093] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.744863][ T6093] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.750575][ T6093] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.754265][ T6093] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.760148][ T6093] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.763876][ T6093] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.768153][ T6093] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.774219][ T6093] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.780497][ T6093] done [ 227.782492][ T6093] bcachefs (loop0): going read-write [ 227.795212][ T6093] bcachefs (loop0): journal_replay... done [ 227.836435][ T6093] bcachefs (loop0): check_alloc_info... done [ 227.844361][ T6093] bcachefs (loop0): check_lrus... done [ 227.847322][ T6093] bcachefs (loop0): check_btree_backpointers... done [ 227.852826][ T6093] bcachefs (loop0): check_backpointers_to_extents... done [ 227.861559][ T6093] bcachefs (loop0): check_extents_to_backpointers... [ 227.863298][ T6093] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 227.870985][ T6093] done [ 227.872984][ T6093] bcachefs (loop0): check_alloc_to_lru_refs... [ 227.873955][ T6093] bcachefs (loop0): missing fragmentation lru entry [ 227.873965][ T6093] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 227.873971][ T6093] gen 0 oldest_gen 0 data_type btree [ 227.873977][ T6093] journal_seq_nonempty 4 [ 227.873983][ T6093] journal_seq_empty 0 [ 227.873988][ T6093] need_discard 1 [ 227.873994][ T6093] need_inc_gen 1 [ 227.873999][ T6093] dirty_sectors 32 [ 227.874004][ T6093] stripe_sectors 0 [ 227.874009][ T6093] cached_sectors 0 [ 227.874015][ T6093] stripe 0 [ 227.874020][ T6093] stripe_redundancy 0 [ 227.874026][ T6093] io_time[READ] 1 [ 227.874031][ T6093] io_time[WRITE] 256 [ 227.874036][ T6093] fragmentation 268435456 [ 227.874042][ T6093] bp_start 8 [ 227.874047][ T6093] , fixing [ 227.920523][ T6093] bcachefs (loop0): missing fragmentation lru entry [ 227.920539][ T6093] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 227.920545][ T6093] gen 0 oldest_gen 0 data_type btree [ 227.920550][ T6093] journal_seq_nonempty 4 [ 227.920556][ T6093] journal_seq_empty 0 [ 227.920561][ T6093] need_discard 1 [ 227.920566][ T6093] need_inc_gen 1 [ 227.920573][ T6093] dirty_sectors 32 [ 227.920579][ T6093] stripe_sectors 0 [ 227.920584][ T6093] cached_sectors 0 [ 227.920595][ T6093] stripe 0 [ 227.920601][ T6093] stripe_redundancy 0 [ 227.920606][ T6093] io_time[READ] 1 [ 227.920611][ T6093] io_time[WRITE] 512 [ 227.920617][ T6093] fragmentation 268435456 [ 227.920623][ T6093] bp_start 8 [ 227.920628][ T6093] , fixing [ 227.963890][ T6093] bcachefs (loop0): missing fragmentation lru entry [ 227.963905][ T6093] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 227.963912][ T6093] gen 0 oldest_gen 0 data_type btree [ 227.963918][ T6093] journal_seq_nonempty 1 [ 227.963923][ T6093] journal_seq_empty 0 [ 227.963929][ T6093] need_discard 1 [ 227.963934][ T6093] need_inc_gen 1 [ 227.963940][ T6093] dirty_sectors 32 [ 227.963946][ T6093] stripe_sectors 0 [ 227.963952][ T6093] cached_sectors 0 [ 227.963957][ T6093] stripe 0 [ 227.963962][ T6093] stripe_redundancy 0 [ 227.963968][ T6093] io_time[READ] 1 [ 227.963974][ T6093] io_time[WRITE] 1 [ 227.963980][ T6093] fragmentation 268435456 [ 227.963986][ T6093] bp_start 8 [ 227.963992][ T6093] , fixing [ 228.006362][ T6093] bcachefs (loop0): missing fragmentation lru entry [ 228.006377][ T6093] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 228.006383][ T6093] gen 0 oldest_gen 0 data_type btree [ 228.006389][ T6093] journal_seq_nonempty 0 [ 228.006395][ T6093] journal_seq_empty 0 [ 228.006400][ T6093] need_discard 0 [ 228.006404][ T6093] need_inc_gen 0 [ 228.006410][ T6093] dirty_sectors 32 [ 228.006415][ T6093] stripe_sectors 0 [ 228.006420][ T6093] cached_sectors 0 [ 228.006425][ T6093] stripe 0 [ 228.006430][ T6093] stripe_redundancy 0 [ 228.006436][ T6093] io_time[READ] 0 [ 228.006441][ T6093] io_time[WRITE] 0 [ 228.006446][ T6093] fragmentation 268435456 [ 228.006452][ T6093] bp_start 8 [ 228.006458][ T6093] , fixing [ 228.045665][ T6093] bcachefs (loop0): missing fragmentation lru entry [ 228.045679][ T6093] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 228.045686][ T6093] gen 0 oldest_gen 0 data_type btree [ 228.045692][ T6093] journal_seq_nonempty 0 [ 228.045698][ T6093] journal_seq_empty 0 [ 228.045704][ T6093] need_discard 0 [ 228.045709][ T6093] need_inc_gen 0 [ 228.045715][ T6093] dirty_sectors 32 [ 228.045720][ T6093] stripe_sectors 0 [ 228.045726][ T6093] cached_sectors 0 [ 228.045732][ T6093] stripe 0 [ 228.045738][ T6093] stripe_redundancy 0 [ 228.045743][ T6093] io_time[READ] 0 [ 228.045749][ T6093] io_time[WRITE] 0 [ 228.045754][ T6093] fragmentation 268435456 [ 228.045760][ T6093] bp_start 8 [ 228.045765][ T6093] , fixing [ 228.084956][ T6093] bcachefs (loop0): missing fragmentation lru entry [ 228.084972][ T6093] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 228.084979][ T6093] gen 0 oldest_gen 0 data_type btree [ 228.084986][ T6093] journal_seq_nonempty 7 [ 228.084993][ T6093] journal_seq_empty 0 [ 228.084998][ T6093] need_discard 1 [ 228.085004][ T6093] need_inc_gen 1 [ 228.085010][ T6093] dirty_sectors 32 [ 228.085016][ T6093] stripe_sectors 0 [ 228.085021][ T6093] cached_sectors 0 [ 228.085026][ T6093] stripe 0 [ 228.085032][ T6093] stripe_redundancy 0 [ 228.085036][ T6093] io_time[READ] 1 [ 228.085041][ T6093] io_time[WRITE] 1280 [ 228.085045][ T6093] fragmentation 268435456 [ 228.085051][ T6093] bp_start 8 [ 228.085057][ T6093] , fixing [ 228.128458][ T6093] done [ 228.131399][ T6093] bcachefs (loop0): bucket_gens_init... done [ 228.135044][ T6093] bcachefs (loop0): check_snapshot_trees... done [ 228.138206][ T6093] bcachefs (loop0): check_snapshots... [ 228.140059][ T6093] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 228.140072][ T6093] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 228.153177][ T6093] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 228.153191][ T6093] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 228.165916][ T6093] bcachefs (loop0): cannot start: journal seq overflow [ 228.168851][ T6093] bcachefs (loop0): fatal error - emergency read only [ 228.171650][ T5486] bcachefs (loop0): going read-only [ 228.174669][ T5486] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 228.178936][ T6093] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 228.184329][ T5486] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 228.189449][ T6093] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 228.192413][ T6093] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 228.195967][ T6093] bcachefs (loop0): shutting down [ 228.200669][ T5486] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 228.229255][ T5486] bcachefs (loop0): finished waiting for writes to stop [ 228.232010][ T5486] bcachefs (loop0): done going read-only, filesystem not clean [ 228.269688][ T6093] bcachefs (loop0): shutdown complete [ 228.795757][ T6093] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 229.122397][ T6103] loop0: detected capacity change from 0 to 32768 [ 229.201194][ T6103] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 229.207913][ T6103] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 229.214838][ T6103] bcachefs (loop0): Version upgrade required: [ 229.214838][ T6103] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 229.214838][ T6103] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 229.214838][ T6103] 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 [ 229.248801][ T6103] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 229.248817][ T6103] 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 [ 229.248825][ T6103] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 229.264712][ T6103] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 229.264712][ T6103] btree=dirents level=0 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 [ 229.275655][ T6103] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 229.275670][ T6103] 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 [ 229.275679][ T6103] 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 [ 229.294947][ T6103] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 229.294947][ T6103] 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 [ 229.308556][ T6103] bcachefs (loop0): accounting_read... done [ 229.312727][ T6103] bcachefs (loop0): alloc_read... done [ 229.315722][ T6103] bcachefs (loop0): snapshots_read... done [ 229.320857][ T6103] bcachefs (loop0): check_allocations... [ 229.322307][ T6103] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 229.322320][ T6103] 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 [ 229.340763][ T6103] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 229.340778][ T6103] 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 [ 229.352365][ T6103] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 229.352379][ T6103] 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 [ 229.365377][ T6103] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 229.365391][ T6103] 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 [ 229.380904][ T6103] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 229.380916][ T6103] 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 [ 229.391556][ T6103] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.395517][ T6103] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.402448][ T6103] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.406391][ T6103] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.411205][ T6103] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.415335][ T6103] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.422028][ T6103] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.425951][ T6103] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.430934][ T6103] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.437391][ T6103] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.444392][ T6103] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.448404][ T6103] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.453709][ T6103] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.457684][ T6103] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.464450][ T6103] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.468185][ T6103] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 229.472802][ T6103] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.477279][ T6103] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.484347][ T6103] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.488969][ T6103] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.493617][ T6103] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.497674][ T6103] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.504701][ T6103] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.508978][ T6103] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.513701][ T6103] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.517847][ T6103] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.522806][ T6103] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.526873][ T6103] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.538080][ T6103] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.542849][ T6103] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.547846][ T6103] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.554119][ T6103] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.559159][ T6103] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.563117][ T6103] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.567901][ T6103] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.574586][ T6103] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.579559][ T6103] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.583533][ T6103] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.588097][ T6103] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.594386][ T6103] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.599353][ T6103] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.603205][ T6103] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.607960][ T6103] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.615510][ T6103] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.620538][ T6103] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.624571][ T6103] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.631564][ T6103] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 229.635832][ T6103] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 229.643885][ T6103] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 229.648046][ T6103] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 229.655130][ T6103] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 229.660223][ T6103] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 229.665094][ T6103] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 229.671135][ T6103] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 229.676164][ T6103] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 229.681502][ T6103] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 229.685535][ T6103] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 229.692807][ T6103] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 229.696912][ T6103] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 229.701990][ T6103] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 229.706850][ T6103] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 229.713081][ T6103] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 229.718140][ T6103] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 229.722539][ T6103] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 229.727136][ T6103] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 229.734649][ T6103] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.741092][ T6103] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.745722][ T6103] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.753025][ T6103] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.757633][ T6103] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.762112][ T6103] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.766739][ T6103] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.773180][ T6103] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.777784][ T6103] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.782105][ T6103] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.786833][ T6103] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.793339][ T6103] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.798077][ T6103] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.802335][ T6103] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.806807][ T6103] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 229.813001][ T6103] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 229.818258][ T6103] done [ 229.820807][ T6103] bcachefs (loop0): going read-write [ 229.833987][ T6103] bcachefs (loop0): journal_replay... done [ 229.891794][ T6103] bcachefs (loop0): check_alloc_info... done [ 229.898230][ T6103] bcachefs (loop0): check_lrus... done [ 229.902414][ T6103] bcachefs (loop0): check_btree_backpointers... done [ 229.906175][ T6103] bcachefs (loop0): check_backpointers_to_extents... [ 229.906806][ T6103] bcachefs (loop0): cannot start: journal seq overflow [ 229.912716][ T6103] bcachefs (loop0): fatal error - emergency read only [ 229.915388][ T9] bcachefs (loop0): going read-only [ 229.918820][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 229.922757][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 229.928547][ T6103] bcachefs (loop0): bch2_check_backpointers_to_extents(): error journal_shutdown [ 229.933274][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 229.937333][ T6103] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 229.941657][ T6103] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 229.947273][ T6103] bcachefs (loop0): shutting down [ 229.959292][ T9] bcachefs (loop0): finished waiting for writes to stop [ 229.962875][ T9] bcachefs (loop0): done going read-only, filesystem not clean [ 229.994207][ T6103] bcachefs (loop0): shutdown complete [ 230.539279][ T6103] bcachefs: bch2_fs_get_tree() error: journal_shutdown 2025/04/16 18:55:06 executed programs: 48 [ 230.898318][ T6113] loop0: detected capacity change from 0 to 32768 [ 230.984587][ T6113] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 230.992578][ T6113] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 230.996397][ T6113] bcachefs (loop0): Version upgrade required: [ 230.996397][ T6113] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 230.996397][ T6113] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 230.996397][ T6113] 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 [ 231.027490][ T6113] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 231.027502][ T6113] 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 [ 231.027510][ T6113] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 231.043566][ T6113] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 231.043566][ T6113] btree=dirents level=0 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 [ 231.057435][ T6113] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 231.057449][ T6113] 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 [ 231.057458][ T6113] 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 [ 231.080830][ T6113] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 231.080830][ T6113] 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 [ 231.094190][ T6113] bcachefs (loop0): accounting_read... done [ 231.096784][ T6113] bcachefs (loop0): alloc_read... done [ 231.101291][ T6113] bcachefs (loop0): snapshots_read... done [ 231.103773][ T6113] bcachefs (loop0): check_allocations... [ 231.105267][ T6113] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 231.105281][ T6113] 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 [ 231.121518][ T6113] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 231.121533][ T6113] 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 [ 231.133730][ T6113] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 231.133744][ T6113] 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 [ 231.146809][ T6113] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 231.146825][ T6113] 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 [ 231.160872][ T6113] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 231.160888][ T6113] 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 [ 231.171841][ T6113] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.177889][ T6113] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.185258][ T6113] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.189763][ T6113] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.194353][ T6113] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.198451][ T6113] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.205771][ T6113] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.210956][ T6113] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.215670][ T6113] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.222166][ T6113] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.226818][ T6113] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.231174][ T6113] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.235878][ T6113] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.241997][ T6113] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.246742][ T6113] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.251121][ T6113] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 231.255738][ T6113] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.261919][ T6113] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.266552][ T6113] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.271022][ T6113] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.277845][ T6113] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.283893][ T6113] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.290075][ T6113] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.294298][ T6113] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.301500][ T6113] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.305531][ T6113] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.313858][ T6113] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.321350][ T6113] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.326034][ T6113] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.330870][ T6113] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.335681][ T6113] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.342309][ T6113] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.347213][ T6113] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.351501][ T6113] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.356126][ T6113] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.362298][ T6113] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.366737][ T6113] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.371353][ T6113] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.375557][ T6113] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.383880][ T6113] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.388556][ T6113] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.393022][ T6113] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.397721][ T6113] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.404654][ T6113] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.409837][ T6113] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.414313][ T6113] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.422950][ T6113] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.427386][ T6113] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.432541][ T6113] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 231.436940][ T6113] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 231.443858][ T6113] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 231.449701][ T6113] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 231.454320][ T6113] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 231.458170][ T6113] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 231.465066][ T6113] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 231.470282][ T6113] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 231.474080][ T6113] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 231.481222][ T6113] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 231.485262][ T6113] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 231.492677][ T6113] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 231.497467][ T6113] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 231.503024][ T6113] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 231.507714][ T6113] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 231.513999][ T6113] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 231.519484][ T6113] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 231.524705][ T6113] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.530496][ T6113] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.535261][ T6113] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.540014][ T6113] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.544462][ T6113] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.551848][ T6113] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.556320][ T6113] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.561391][ T6113] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.566078][ T6113] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.572065][ T6113] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.576748][ T6113] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.581526][ T6113] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.588331][ T6113] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.594154][ T6113] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.599774][ T6113] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.603673][ T6113] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.610693][ T6113] done [ 231.612970][ T6113] bcachefs (loop0): going read-write [ 231.620288][ T6113] bcachefs (loop0): journal_replay... done [ 231.667393][ T6113] bcachefs (loop0): check_alloc_info... done [ 231.676538][ T6113] bcachefs (loop0): check_lrus... done [ 231.680913][ T6113] bcachefs (loop0): check_btree_backpointers... done [ 231.687525][ T6113] bcachefs (loop0): check_backpointers_to_extents... done [ 231.700142][ T6113] bcachefs (loop0): check_extents_to_backpointers... [ 231.701345][ T6113] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 231.708028][ T6113] done [ 231.712909][ T6113] bcachefs (loop0): check_alloc_to_lru_refs... [ 231.713902][ T6113] bcachefs (loop0): missing fragmentation lru entry [ 231.713914][ T6113] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 231.713921][ T6113] gen 0 oldest_gen 0 data_type btree [ 231.713927][ T6113] journal_seq_nonempty 4 [ 231.713933][ T6113] journal_seq_empty 0 [ 231.713939][ T6113] need_discard 1 [ 231.713945][ T6113] need_inc_gen 1 [ 231.713950][ T6113] dirty_sectors 32 [ 231.713956][ T6113] stripe_sectors 0 [ 231.713961][ T6113] cached_sectors 0 [ 231.713967][ T6113] stripe 0 [ 231.713973][ T6113] stripe_redundancy 0 [ 231.713979][ T6113] io_time[READ] 1 [ 231.713984][ T6113] io_time[WRITE] 256 [ 231.713989][ T6113] fragmentation 268435456 [ 231.713995][ T6113] bp_start 8 [ 231.714001][ T6113] , fixing [ 231.756009][ T6113] bcachefs (loop0): missing fragmentation lru entry [ 231.756023][ T6113] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 231.756030][ T6113] gen 0 oldest_gen 0 data_type btree [ 231.756036][ T6113] journal_seq_nonempty 4 [ 231.756042][ T6113] journal_seq_empty 0 [ 231.756047][ T6113] need_discard 1 [ 231.756052][ T6113] need_inc_gen 1 [ 231.756058][ T6113] dirty_sectors 32 [ 231.756063][ T6113] stripe_sectors 0 [ 231.756069][ T6113] cached_sectors 0 [ 231.756074][ T6113] stripe 0 [ 231.756080][ T6113] stripe_redundancy 0 [ 231.756085][ T6113] io_time[READ] 1 [ 231.756090][ T6113] io_time[WRITE] 512 [ 231.756096][ T6113] fragmentation 268435456 [ 231.756103][ T6113] bp_start 8 [ 231.756108][ T6113] , fixing [ 231.797827][ T6113] bcachefs (loop0): missing fragmentation lru entry [ 231.797841][ T6113] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 231.797848][ T6113] gen 0 oldest_gen 0 data_type btree [ 231.797854][ T6113] journal_seq_nonempty 1 [ 231.797860][ T6113] journal_seq_empty 0 [ 231.797865][ T6113] need_discard 1 [ 231.797871][ T6113] need_inc_gen 1 [ 231.797877][ T6113] dirty_sectors 32 [ 231.797883][ T6113] stripe_sectors 0 [ 231.797889][ T6113] cached_sectors 0 [ 231.797895][ T6113] stripe 0 [ 231.797900][ T6113] stripe_redundancy 0 [ 231.797906][ T6113] io_time[READ] 1 [ 231.797911][ T6113] io_time[WRITE] 1 [ 231.797917][ T6113] fragmentation 268435456 [ 231.797923][ T6113] bp_start 8 [ 231.797929][ T6113] , fixing [ 231.841289][ T6113] bcachefs (loop0): missing fragmentation lru entry [ 231.841304][ T6113] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 231.841311][ T6113] gen 0 oldest_gen 0 data_type btree [ 231.841317][ T6113] journal_seq_nonempty 0 [ 231.841323][ T6113] journal_seq_empty 0 [ 231.841329][ T6113] need_discard 0 [ 231.841335][ T6113] need_inc_gen 0 [ 231.841341][ T6113] dirty_sectors 32 [ 231.841346][ T6113] stripe_sectors 0 [ 231.841352][ T6113] cached_sectors 0 [ 231.841356][ T6113] stripe 0 [ 231.841362][ T6113] stripe_redundancy 0 [ 231.841367][ T6113] io_time[READ] 0 [ 231.841372][ T6113] io_time[WRITE] 0 [ 231.841378][ T6113] fragmentation 268435456 [ 231.841383][ T6113] bp_start 8 [ 231.841389][ T6113] , fixing [ 231.881186][ T6113] bcachefs (loop0): missing fragmentation lru entry [ 231.881199][ T6113] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 231.881206][ T6113] gen 0 oldest_gen 0 data_type btree [ 231.881211][ T6113] journal_seq_nonempty 0 [ 231.881217][ T6113] journal_seq_empty 0 [ 231.881222][ T6113] need_discard 0 [ 231.881227][ T6113] need_inc_gen 0 [ 231.881232][ T6113] dirty_sectors 32 [ 231.881237][ T6113] stripe_sectors 0 [ 231.881242][ T6113] cached_sectors 0 [ 231.881247][ T6113] stripe 0 [ 231.881253][ T6113] stripe_redundancy 0 [ 231.881257][ T6113] io_time[READ] 0 [ 231.881263][ T6113] io_time[WRITE] 0 [ 231.881274][ T6113] fragmentation 268435456 [ 231.881280][ T6113] bp_start 8 [ 231.881285][ T6113] , fixing [ 231.921852][ T6113] bcachefs (loop0): missing fragmentation lru entry [ 231.921868][ T6113] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 231.921874][ T6113] gen 0 oldest_gen 0 data_type btree [ 231.921880][ T6113] journal_seq_nonempty 7 [ 231.921885][ T6113] journal_seq_empty 0 [ 231.921891][ T6113] need_discard 1 [ 231.921897][ T6113] need_inc_gen 1 [ 231.921903][ T6113] dirty_sectors 32 [ 231.921908][ T6113] stripe_sectors 0 [ 231.921914][ T6113] cached_sectors 0 [ 231.921919][ T6113] stripe 0 [ 231.921924][ T6113] stripe_redundancy 0 [ 231.921930][ T6113] io_time[READ] 1 [ 231.921936][ T6113] io_time[WRITE] 1280 [ 231.921942][ T6113] fragmentation 268435456 [ 231.921948][ T6113] bp_start 8 [ 231.921954][ T6113] , fixing [ 231.962236][ T6113] done [ 231.965298][ T6113] bcachefs (loop0): bucket_gens_init... done [ 231.971221][ T6113] bcachefs (loop0): check_snapshot_trees... done [ 231.974014][ T6113] bcachefs (loop0): check_snapshots... [ 231.974313][ T6113] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 231.974323][ T6113] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 231.986493][ T6113] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 231.986506][ T6113] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 232.001709][ T31] bcachefs (loop0): cannot start: journal seq overflow [ 232.005228][ T31] bcachefs (loop0): fatal error - emergency read only [ 232.007985][ T1346] bcachefs (loop0): going read-only [ 232.011310][ T1346] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 232.016088][ T6113] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 232.021559][ T1346] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 232.026486][ T6113] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 232.032258][ T1346] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 232.035915][ T6113] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 232.041217][ T6113] bcachefs (loop0): shutting down [ 232.059261][ T1346] bcachefs (loop0): finished waiting for writes to stop [ 232.063908][ T1346] bcachefs (loop0): done going read-only, filesystem not clean [ 232.109968][ T6113] bcachefs (loop0): shutdown complete [ 232.671924][ T6113] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 233.005195][ T6123] loop0: detected capacity change from 0 to 32768 [ 233.085846][ T6123] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 233.094345][ T6123] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 233.100102][ T6123] bcachefs (loop0): Version upgrade required: [ 233.100102][ T6123] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 233.100102][ T6123] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 233.100102][ T6123] 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 [ 233.137111][ T6123] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 233.137127][ T6123] 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 [ 233.137136][ T6123] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 233.153507][ T6123] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 233.153507][ T6123] btree=dirents level=0 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 [ 233.164712][ T6123] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 233.164727][ T6123] 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 [ 233.164736][ T6123] 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 [ 233.183253][ T6123] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 233.183253][ T6123] 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 [ 233.197358][ T6123] bcachefs (loop0): accounting_read... done [ 233.200477][ T6123] bcachefs (loop0): alloc_read... done [ 233.202705][ T6123] bcachefs (loop0): snapshots_read... done [ 233.205192][ T6123] bcachefs (loop0): check_allocations... [ 233.206772][ T6123] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 233.206786][ T6123] 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 [ 233.226636][ T6123] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 233.226671][ T6123] 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 [ 233.239811][ T6123] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 233.239826][ T6123] 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 [ 233.253528][ T6123] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 233.253545][ T6123] 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 [ 233.265894][ T6123] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 233.265909][ T6123] 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 [ 233.279753][ T6123] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.283810][ T6123] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.291209][ T6123] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.295239][ T6123] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.300318][ T6123] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.304280][ T6123] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.310842][ T6123] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.314758][ T6123] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.320112][ T6123] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.326218][ T6123] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.332463][ T6123] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.336474][ T6123] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.341936][ T6123] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.345822][ T6123] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.352179][ T6123] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.356115][ T6123] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 233.361581][ T6123] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.365929][ T6123] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.372587][ T6123] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.376818][ T6123] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.383397][ T6123] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.387759][ T6123] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.394453][ T6123] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.399457][ T6123] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.404338][ T6123] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.408509][ T6123] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.415210][ T6123] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.420247][ T6123] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.428085][ T6123] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.434324][ T6123] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.440101][ T6123] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.444138][ T6123] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.451151][ T6123] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.455133][ T6123] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.460815][ T6123] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.464985][ T6123] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.470948][ T6123] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.474779][ T6123] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.480477][ T6123] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.484541][ T6123] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.491704][ T6123] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.495827][ T6123] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.501953][ T6123] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.506060][ T6123] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.512476][ T6123] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.516390][ T6123] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.521442][ T6123] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.525750][ T6123] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.535088][ T6123] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.539842][ T6123] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 233.544285][ T6123] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 233.550695][ T6123] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 233.555252][ T6123] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.560206][ T6123] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 233.565167][ T6123] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 233.572559][ T6123] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 233.577050][ T6123] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 233.582698][ T6123] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.586792][ T6123] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 233.593175][ T6123] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 233.597825][ T6123] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.603308][ T6123] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 233.608119][ T6123] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.614377][ T6123] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 233.619807][ T6123] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 233.624851][ T6123] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.632310][ T6123] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.637768][ T6123] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.642626][ T6123] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.647425][ T6123] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.653047][ T6123] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.657631][ T6123] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.662590][ T6123] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.667365][ T6123] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.672869][ T6123] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.677523][ T6123] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.681767][ T6123] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.686422][ T6123] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.692953][ T6123] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.697553][ T6123] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.701861][ T6123] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.707478][ T6123] done [ 233.712912][ T6123] bcachefs (loop0): going read-write [ 233.727227][ T6123] bcachefs (loop0): journal_replay... done [ 233.779874][ T6123] bcachefs (loop0): check_alloc_info... done [ 233.786290][ T6123] bcachefs (loop0): check_lrus... done [ 233.792226][ T6123] bcachefs (loop0): check_btree_backpointers... done [ 233.795877][ T6123] bcachefs (loop0): check_backpointers_to_extents... [ 233.796464][ T6123] bcachefs (loop0): cannot start: journal seq overflow [ 233.802020][ T6123] bcachefs (loop0): fatal error - emergency read only [ 233.804601][ T1346] bcachefs (loop0): going read-only [ 233.806424][ T1346] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 233.812633][ T6123] bcachefs (loop0): bch2_check_backpointers_to_extents(): error journal_shutdown [ 233.816507][ T6123] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 233.820694][ T1346] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 233.825102][ T1346] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 233.831158][ T6123] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 233.834731][ T6123] bcachefs (loop0): shutting down [ 233.849655][ T1346] bcachefs (loop0): finished waiting for writes to stop [ 233.855532][ T1346] bcachefs (loop0): done going read-only, filesystem not clean [ 233.893889][ T6123] bcachefs (loop0): shutdown complete [ 234.407408][ T6123] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 234.726712][ T6133] loop0: detected capacity change from 0 to 32768 [ 234.820203][ T6133] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 234.826524][ T6133] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 234.832058][ T6133] bcachefs (loop0): Version upgrade required: [ 234.832058][ T6133] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 234.832058][ T6133] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 234.832058][ T6133] 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 [ 234.857793][ T1033] unregister_netdevice: waiting for batadv0 to become free. Usage count = 3 [ 234.868831][ T6133] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 234.868845][ T6133] 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 [ 234.868854][ T6133] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 234.885225][ T6133] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 234.885225][ T6133] btree=dirents level=0 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 [ 234.896661][ T6133] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 234.896677][ T6133] 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 [ 234.896686][ T6133] 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 [ 234.915281][ T6133] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 234.915281][ T6133] 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 [ 234.930116][ T6133] bcachefs (loop0): accounting_read... done [ 234.932594][ T6133] bcachefs (loop0): alloc_read... done [ 234.934941][ T6133] bcachefs (loop0): snapshots_read... done [ 234.937575][ T6133] bcachefs (loop0): check_allocations... [ 234.941314][ T6133] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 234.941328][ T6133] 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 [ 234.955426][ T6133] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 234.955442][ T6133] 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 [ 234.971134][ T6133] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 234.971149][ T6133] 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 [ 234.984322][ T6133] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 234.984338][ T6133] 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 [ 234.996276][ T6133] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 234.996291][ T6133] 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 [ 235.009190][ T6133] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.013113][ T6133] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.017952][ T6133] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.024318][ T6133] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.030161][ T6133] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.034007][ T6133] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.038584][ T6133] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.044752][ T6133] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.049960][ T6133] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.053873][ T6133] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.058356][ T6133] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.066031][ T6133] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.071722][ T6133] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.075654][ T6133] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.081808][ T6133] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.085712][ T6133] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 235.091548][ T6133] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.095564][ T6133] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.101787][ T6133] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.106014][ T6133] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.111679][ T6133] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.115563][ T6133] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.121381][ T6133] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.125530][ T6133] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.133648][ T6133] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.137709][ T6133] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.144514][ T6133] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.149953][ T6133] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.154756][ T6133] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.160299][ T6133] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.165208][ T6133] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.171843][ T6133] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.176471][ T6133] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.181827][ T6133] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.186686][ T6133] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.192445][ T6133] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.197260][ T6133] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.202612][ T6133] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.207532][ T6133] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.217578][ T6133] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.223599][ T6133] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.227743][ T6133] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.233739][ T6133] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.237813][ T6133] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.243935][ T6133] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.248130][ T6133] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.254786][ T6133] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 235.260240][ T6133] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 235.265117][ T6133] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 235.272910][ T6133] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 235.277714][ T6133] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 235.284020][ T6133] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 235.291075][ T6133] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 235.295431][ T6133] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 235.301744][ T6133] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 235.306869][ T6133] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 235.312337][ T6133] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 235.317237][ T6133] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 235.321875][ T6133] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 235.326699][ T6133] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 235.333014][ T6133] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 235.337226][ T6133] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 235.343440][ T6133] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 235.347608][ T6133] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 235.353719][ T6133] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 235.361025][ T6133] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.365262][ T6133] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.374042][ T6133] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.378254][ T6133] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.384448][ T6133] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.390009][ T6133] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.394760][ T6133] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.400282][ T6133] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.404810][ T6133] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.408635][ T6133] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.415181][ T6133] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.420698][ T6133] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.425359][ T6133] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.430880][ T6133] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.435689][ T6133] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 235.441249][ T6133] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 235.446867][ T6133] done [ 235.450443][ T6133] bcachefs (loop0): going read-write [ 235.457950][ T6133] bcachefs (loop0): journal_replay... done [ 235.523679][ T6133] bcachefs (loop0): check_alloc_info... done [ 235.533955][ T6133] bcachefs (loop0): check_lrus... done [ 235.537302][ T6133] bcachefs (loop0): check_btree_backpointers... done [ 235.542588][ T6133] bcachefs (loop0): check_backpointers_to_extents... [ 235.543320][ T6133] bcachefs (loop0): cannot start: journal seq overflow [ 235.548450][ T6133] bcachefs (loop0): fatal error - emergency read only [ 235.551465][ T9] bcachefs (loop0): going read-only [ 235.553676][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 235.557699][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 235.564788][ T6133] bcachefs (loop0): bch2_check_backpointers_to_extents(): error journal_shutdown [ 235.569104][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 235.573405][ T6133] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 235.581758][ T6133] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 235.585496][ T6133] bcachefs (loop0): shutting down [ 235.599583][ T9] bcachefs (loop0): finished waiting for writes to stop [ 235.604499][ T9] bcachefs (loop0): done going read-only, filesystem not clean [ 235.650342][ T6133] bcachefs (loop0): shutdown complete [ 236.216819][ T6133] bcachefs: bch2_fs_get_tree() error: journal_shutdown 2025/04/16 18:55:11 executed programs: 51 [ 236.550501][ T6143] loop0: detected capacity change from 0 to 32768 [ 236.640251][ T6143] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 236.646790][ T6143] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 236.653117][ T6143] bcachefs (loop0): Version upgrade required: [ 236.653117][ T6143] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 236.653117][ T6143] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 236.653117][ T6143] 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 [ 236.683548][ T6143] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 236.683563][ T6143] 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 [ 236.683572][ T6143] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 236.697572][ T6143] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 236.697572][ T6143] btree=dirents level=0 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 [ 236.712738][ T6143] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 236.712753][ T6143] 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 [ 236.712763][ T6143] 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 [ 236.731498][ T6143] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 236.731498][ T6143] 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 [ 236.744466][ T6143] bcachefs (loop0): accounting_read... done [ 236.747359][ T6143] bcachefs (loop0): alloc_read... done [ 236.752097][ T6143] bcachefs (loop0): snapshots_read... done [ 236.754869][ T6143] bcachefs (loop0): check_allocations... [ 236.756564][ T6143] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 236.756578][ T6143] 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 [ 236.772781][ T6143] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 236.772796][ T6143] 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 [ 236.784247][ T6143] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 236.784263][ T6143] 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 [ 236.796722][ T6143] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 236.796738][ T6143] 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 [ 236.817055][ T6143] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 236.817071][ T6143] 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 [ 236.831081][ T6143] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.835257][ T6143] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.840898][ T6143] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.844738][ T6143] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.852151][ T6143] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.856297][ T6143] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.861749][ T6143] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.865699][ T6143] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.871933][ T6143] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.875996][ T6143] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.881333][ T6143] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.885106][ T6143] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.892395][ T6143] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.896369][ T6143] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.901582][ T6143] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.905751][ T6143] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 236.914333][ T6143] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.918424][ T6143] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.923963][ T6143] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.928004][ T6143] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.935311][ T6143] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.940434][ T6143] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.945259][ T6143] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.951265][ T6143] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.956196][ T6143] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.961202][ T6143] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.965821][ T6143] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.973003][ T6143] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.977821][ T6143] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.982811][ T6143] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.987693][ T6143] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.993371][ T6143] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.998039][ T6143] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.002775][ T6143] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.007390][ T6143] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.015165][ T6143] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.020504][ T6143] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.024402][ T6143] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.030737][ T6143] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.034614][ T6143] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.040822][ T6143] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.044750][ T6143] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.051191][ T6143] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.055087][ T6143] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.060356][ T6143] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.064257][ T6143] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.070268][ T6143] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 237.074493][ T6143] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 237.079985][ T6143] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 237.083887][ T6143] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 237.088490][ T6143] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 237.094851][ T6143] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 237.100612][ T6143] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 237.104708][ T6143] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 237.114610][ T6143] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 237.120221][ T6143] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 237.124262][ T6143] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 237.130836][ T6143] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 237.134976][ T6143] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 237.140294][ T6143] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 237.144826][ T6143] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 237.151848][ T6143] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 237.156644][ T6143] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 237.161738][ T6143] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 237.166344][ T6143] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 237.173706][ T6143] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.177848][ T6143] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.183588][ T6143] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.187644][ T6143] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.194055][ T6143] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.198141][ T6143] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.203677][ T6143] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.207901][ T6143] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.215884][ T6143] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.221975][ T6143] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.226587][ T6143] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.232728][ T6143] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.237443][ T6143] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.242295][ T6143] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.247149][ T6143] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.252919][ T6143] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.260340][ T6143] done [ 237.262607][ T6143] bcachefs (loop0): going read-write [ 237.269753][ T6143] bcachefs (loop0): journal_replay... done [ 237.324572][ T6143] bcachefs (loop0): check_alloc_info... done [ 237.333990][ T6143] bcachefs (loop0): check_lrus... done [ 237.337217][ T6143] bcachefs (loop0): check_btree_backpointers... done [ 237.342659][ T6143] bcachefs (loop0): check_backpointers_to_extents... done [ 237.353837][ T6143] bcachefs (loop0): check_extents_to_backpointers... [ 237.355185][ T6143] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 237.363143][ T6143] done [ 237.366025][ T6143] bcachefs (loop0): check_alloc_to_lru_refs... [ 237.367210][ T6143] bcachefs (loop0): missing fragmentation lru entry [ 237.367221][ T6143] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 237.367229][ T6143] gen 0 oldest_gen 0 data_type btree [ 237.367237][ T6143] journal_seq_nonempty 4 [ 237.367243][ T6143] journal_seq_empty 0 [ 237.367249][ T6143] need_discard 1 [ 237.367255][ T6143] need_inc_gen 1 [ 237.367262][ T6143] dirty_sectors 32 [ 237.367269][ T6143] stripe_sectors 0 [ 237.367276][ T6143] cached_sectors 0 [ 237.367283][ T6143] stripe 0 [ 237.367289][ T6143] stripe_redundancy 0 [ 237.367295][ T6143] io_time[READ] 1 [ 237.367301][ T6143] io_time[WRITE] 256 [ 237.367308][ T6143] fragmentation 268435456 [ 237.367315][ T6143] bp_start 8 [ 237.367321][ T6143] , fixing [ 237.416182][ T6143] bcachefs (loop0): missing fragmentation lru entry [ 237.416197][ T6143] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 237.416205][ T6143] gen 0 oldest_gen 0 data_type btree [ 237.416212][ T6143] journal_seq_nonempty 4 [ 237.416218][ T6143] journal_seq_empty 0 [ 237.416224][ T6143] need_discard 1 [ 237.416231][ T6143] need_inc_gen 1 [ 237.416237][ T6143] dirty_sectors 32 [ 237.416244][ T6143] stripe_sectors 0 [ 237.416250][ T6143] cached_sectors 0 [ 237.416257][ T6143] stripe 0 [ 237.416264][ T6143] stripe_redundancy 0 [ 237.416270][ T6143] io_time[READ] 1 [ 237.416276][ T6143] io_time[WRITE] 512 [ 237.416283][ T6143] fragmentation 268435456 [ 237.416289][ T6143] bp_start 8 [ 237.416296][ T6143] , fixing [ 237.460006][ T6143] bcachefs (loop0): missing fragmentation lru entry [ 237.460020][ T6143] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 237.460027][ T6143] gen 0 oldest_gen 0 data_type btree [ 237.460033][ T6143] journal_seq_nonempty 1 [ 237.460039][ T6143] journal_seq_empty 0 [ 237.460045][ T6143] need_discard 1 [ 237.460051][ T6143] need_inc_gen 1 [ 237.460057][ T6143] dirty_sectors 32 [ 237.460062][ T6143] stripe_sectors 0 [ 237.460068][ T6143] cached_sectors 0 [ 237.460074][ T6143] stripe 0 [ 237.460078][ T6143] stripe_redundancy 0 [ 237.460081][ T6143] io_time[READ] 1 [ 237.460085][ T6143] io_time[WRITE] 1 [ 237.460088][ T6143] fragmentation 268435456 [ 237.460092][ T6143] bp_start 8 [ 237.460095][ T6143] , fixing [ 237.500348][ T6143] bcachefs (loop0): missing fragmentation lru entry [ 237.500362][ T6143] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 237.500368][ T6143] gen 0 oldest_gen 0 data_type btree [ 237.500375][ T6143] journal_seq_nonempty 0 [ 237.500381][ T6143] journal_seq_empty 0 [ 237.500498][ T6143] need_discard 0 [ 237.500506][ T6143] need_inc_gen 0 [ 237.500512][ T6143] dirty_sectors 32 [ 237.500517][ T6143] stripe_sectors 0 [ 237.500523][ T6143] cached_sectors 0 [ 237.500529][ T6143] stripe 0 [ 237.500535][ T6143] stripe_redundancy 0 [ 237.500541][ T6143] io_time[READ] 0 [ 237.500546][ T6143] io_time[WRITE] 0 [ 237.500551][ T6143] fragmentation 268435456 [ 237.500556][ T6143] bp_start 8 [ 237.500561][ T6143] , fixing [ 237.542556][ T6143] bcachefs (loop0): missing fragmentation lru entry [ 237.542570][ T6143] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 237.542578][ T6143] gen 0 oldest_gen 0 data_type btree [ 237.542585][ T6143] journal_seq_nonempty 0 [ 237.542591][ T6143] journal_seq_empty 0 [ 237.542598][ T6143] need_discard 0 [ 237.542605][ T6143] need_inc_gen 0 [ 237.542611][ T6143] dirty_sectors 32 [ 237.542618][ T6143] stripe_sectors 0 [ 237.542654][ T6143] cached_sectors 0 [ 237.542661][ T6143] stripe 0 [ 237.542667][ T6143] stripe_redundancy 0 [ 237.542673][ T6143] io_time[READ] 0 [ 237.542680][ T6143] io_time[WRITE] 0 [ 237.542686][ T6143] fragmentation 268435456 [ 237.542693][ T6143] bp_start 8 [ 237.542699][ T6143] , fixing [ 237.583304][ T6143] bcachefs (loop0): missing fragmentation lru entry [ 237.583324][ T6143] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 237.583332][ T6143] gen 0 oldest_gen 0 data_type btree [ 237.583339][ T6143] journal_seq_nonempty 7 [ 237.583345][ T6143] journal_seq_empty 0 [ 237.583351][ T6143] need_discard 1 [ 237.583358][ T6143] need_inc_gen 1 [ 237.583364][ T6143] dirty_sectors 32 [ 237.583371][ T6143] stripe_sectors 0 [ 237.583378][ T6143] cached_sectors 0 [ 237.583384][ T6143] stripe 0 [ 237.583391][ T6143] stripe_redundancy 0 [ 237.583397][ T6143] io_time[READ] 1 [ 237.583403][ T6143] io_time[WRITE] 1280 [ 237.583410][ T6143] fragmentation 268435456 [ 237.583417][ T6143] bp_start 8 [ 237.583424][ T6143] , fixing [ 237.628268][ T6143] done [ 237.632609][ T6143] bcachefs (loop0): bucket_gens_init... done [ 237.636666][ T6143] bcachefs (loop0): check_snapshot_trees... done [ 237.640967][ T6143] bcachefs (loop0): check_snapshots... [ 237.641431][ T6143] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 237.641443][ T6143] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 237.655649][ T6143] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 237.655665][ T6143] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 237.667409][ T1038] bcachefs (loop0): cannot start: journal seq overflow [ 237.670957][ T1038] bcachefs (loop0): fatal error - emergency read only [ 237.673682][ T5486] bcachefs (loop0): going read-only [ 237.675854][ T5486] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 237.682522][ T6143] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 237.686339][ T6143] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 237.690296][ T5486] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 237.709202][ T5486] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 237.712904][ T6143] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 237.716543][ T6143] bcachefs (loop0): shutting down [ 237.740873][ T5486] bcachefs (loop0): finished waiting for writes to stop [ 237.743728][ T5486] bcachefs (loop0): done going read-only, filesystem not clean [ 237.785128][ T6143] bcachefs (loop0): shutdown complete [ 238.308867][ T6143] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 238.641481][ T6153] loop0: detected capacity change from 0 to 32768 [ 238.726104][ T6153] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 238.735531][ T6153] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 238.740519][ T6153] bcachefs (loop0): Version upgrade required: [ 238.740519][ T6153] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 238.740519][ T6153] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 238.740519][ T6153] 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 [ 238.774089][ T6153] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 238.774106][ T6153] 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 [ 238.774116][ T6153] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 238.791010][ T6153] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 238.791010][ T6153] btree=dirents level=0 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 [ 238.802597][ T6153] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 238.802664][ T6153] 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 [ 238.802675][ T6153] 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 [ 238.824454][ T6153] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 238.824454][ T6153] 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 [ 238.839340][ T6153] bcachefs (loop0): accounting_read... done [ 238.841867][ T6153] bcachefs (loop0): alloc_read... done [ 238.844333][ T6153] bcachefs (loop0): snapshots_read... done [ 238.847008][ T6153] bcachefs (loop0): check_allocations... [ 238.848629][ T6153] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 238.850489][ T6153] 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 [ 238.867631][ T6153] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 238.867648][ T6153] 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 [ 238.880977][ T6153] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 238.880992][ T6153] 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 [ 238.897171][ T6153] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 238.897187][ T6153] 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 [ 238.912247][ T6153] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 238.912264][ T6153] 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 [ 238.923105][ T6153] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.927428][ T6153] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.934680][ T6153] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.939029][ T6153] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.943873][ T6153] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.947917][ T6153] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.954717][ T6153] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.961262][ T6153] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.965937][ T6153] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.973541][ T6153] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.978224][ T6153] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.982968][ T6153] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.987759][ T6153] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.993891][ T6153] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.999064][ T6153] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.003081][ T6153] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 239.007698][ T6153] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.014219][ T6153] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.019835][ T6153] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.023946][ T6153] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.030963][ T6153] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.035086][ T6153] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.041054][ T6153] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.045293][ T6153] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.052994][ T6153] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.057318][ T6153] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.064664][ T6153] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.071056][ T6153] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.076184][ T6153] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.080849][ T6153] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.085692][ T6153] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.091779][ T6153] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.096510][ T6153] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.101281][ T6153] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.106093][ T6153] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.112297][ T6153] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.117030][ T6153] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.121695][ T6153] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.126250][ T6153] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.134075][ T6153] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.139138][ T6153] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.143148][ T6153] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.148037][ T6153] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.154773][ T6153] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.162131][ T6153] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.166216][ T6153] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.172864][ T6153] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 239.177184][ T6153] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 239.182569][ T6153] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 239.186923][ T6153] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 239.193615][ T6153] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 239.198455][ T6153] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 239.203635][ T6153] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 239.207878][ T6153] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 239.214523][ T6153] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 239.219761][ T6153] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 239.223807][ T6153] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 239.231147][ T6153] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 239.235365][ T6153] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 239.241239][ T6153] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 239.245931][ T6153] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 239.252810][ T6153] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 239.257704][ T6153] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 239.264561][ T6153] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 239.271481][ T6153] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 239.276947][ T6153] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.281664][ T6153] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.286515][ T6153] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.293365][ T6153] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.298497][ T6153] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.303329][ T6153] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.308175][ T6153] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.314320][ T6153] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.319639][ T6153] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.324716][ T6153] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.332938][ T6153] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.337614][ T6153] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.343355][ T6153] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.348261][ T6153] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.356300][ T6153] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 239.360667][ T6153] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 239.374868][ T6153] done [ 239.377151][ T6153] bcachefs (loop0): going read-write [ 239.380978][ T6153] bcachefs (loop0): journal_replay... done [ 239.431995][ T6153] bcachefs (loop0): check_alloc_info... done [ 239.439353][ T6153] bcachefs (loop0): check_lrus... done [ 239.442507][ T6153] bcachefs (loop0): check_btree_backpointers... done [ 239.446247][ T6153] bcachefs (loop0): check_backpointers_to_extents... done [ 239.460252][ T6153] bcachefs (loop0): check_extents_to_backpointers... [ 239.461519][ T6153] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 239.472619][ T6153] done [ 239.474848][ T6153] bcachefs (loop0): check_alloc_to_lru_refs... [ 239.475840][ T6153] bcachefs (loop0): missing fragmentation lru entry [ 239.475851][ T6153] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 239.475857][ T6153] gen 0 oldest_gen 0 data_type btree [ 239.475863][ T6153] journal_seq_nonempty 4 [ 239.475869][ T6153] journal_seq_empty 0 [ 239.475875][ T6153] need_discard 1 [ 239.475880][ T6153] need_inc_gen 1 [ 239.475886][ T6153] dirty_sectors 32 [ 239.475891][ T6153] stripe_sectors 0 [ 239.475896][ T6153] cached_sectors 0 [ 239.475902][ T6153] stripe 0 [ 239.475907][ T6153] stripe_redundancy 0 [ 239.475913][ T6153] io_time[READ] 1 [ 239.475919][ T6153] io_time[WRITE] 256 [ 239.475925][ T6153] fragmentation 268435456 [ 239.475931][ T6153] bp_start 8 [ 239.475936][ T6153] , fixing [ 239.519431][ T6153] bcachefs (loop0): missing fragmentation lru entry [ 239.519440][ T6153] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 239.519444][ T6153] gen 0 oldest_gen 0 data_type btree [ 239.519448][ T6153] journal_seq_nonempty 4 [ 239.519452][ T6153] journal_seq_empty 0 [ 239.519455][ T6153] need_discard 1 [ 239.519459][ T6153] need_inc_gen 1 [ 239.519462][ T6153] dirty_sectors 32 [ 239.519466][ T6153] stripe_sectors 0 [ 239.519469][ T6153] cached_sectors 0 [ 239.519473][ T6153] stripe 0 [ 239.519476][ T6153] stripe_redundancy 0 [ 239.519480][ T6153] io_time[READ] 1 [ 239.519483][ T6153] io_time[WRITE] 512 [ 239.519487][ T6153] fragmentation 268435456 [ 239.519490][ T6153] bp_start 8 [ 239.519494][ T6153] , fixing [ 239.561551][ T6153] bcachefs (loop0): missing fragmentation lru entry [ 239.561564][ T6153] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 239.561570][ T6153] gen 0 oldest_gen 0 data_type btree [ 239.561575][ T6153] journal_seq_nonempty 1 [ 239.561581][ T6153] journal_seq_empty 0 [ 239.561586][ T6153] need_discard 1 [ 239.561592][ T6153] need_inc_gen 1 [ 239.561598][ T6153] dirty_sectors 32 [ 239.561603][ T6153] stripe_sectors 0 [ 239.561608][ T6153] cached_sectors 0 [ 239.561614][ T6153] stripe 0 [ 239.561620][ T6153] stripe_redundancy 0 [ 239.561625][ T6153] io_time[READ] 1 [ 239.561631][ T6153] io_time[WRITE] 1 [ 239.561637][ T6153] fragmentation 268435456 [ 239.561643][ T6153] bp_start 8 [ 239.561649][ T6153] , fixing [ 239.606221][ T6153] bcachefs (loop0): missing fragmentation lru entry [ 239.606237][ T6153] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 239.606243][ T6153] gen 0 oldest_gen 0 data_type btree [ 239.606250][ T6153] journal_seq_nonempty 0 [ 239.606255][ T6153] journal_seq_empty 0 [ 239.606262][ T6153] need_discard 0 [ 239.606268][ T6153] need_inc_gen 0 [ 239.606273][ T6153] dirty_sectors 32 [ 239.606278][ T6153] stripe_sectors 0 [ 239.606283][ T6153] cached_sectors 0 [ 239.606288][ T6153] stripe 0 [ 239.606294][ T6153] stripe_redundancy 0 [ 239.606299][ T6153] io_time[READ] 0 [ 239.606305][ T6153] io_time[WRITE] 0 [ 239.606311][ T6153] fragmentation 268435456 [ 239.606317][ T6153] bp_start 8 [ 239.606323][ T6153] , fixing [ 239.647607][ T6153] bcachefs (loop0): missing fragmentation lru entry [ 239.647621][ T6153] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 239.647628][ T6153] gen 0 oldest_gen 0 data_type btree [ 239.647634][ T6153] journal_seq_nonempty 0 [ 239.647640][ T6153] journal_seq_empty 0 [ 239.647646][ T6153] need_discard 0 [ 239.647652][ T6153] need_inc_gen 0 [ 239.647657][ T6153] dirty_sectors 32 [ 239.647663][ T6153] stripe_sectors 0 [ 239.647667][ T6153] cached_sectors 0 [ 239.647673][ T6153] stripe 0 [ 239.647678][ T6153] stripe_redundancy 0 [ 239.647683][ T6153] io_time[READ] 0 [ 239.647688][ T6153] io_time[WRITE] 0 [ 239.647693][ T6153] fragmentation 268435456 [ 239.647699][ T6153] bp_start 8 [ 239.647704][ T6153] , fixing [ 239.692009][ T6153] bcachefs (loop0): missing fragmentation lru entry [ 239.692024][ T6153] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 239.692030][ T6153] gen 0 oldest_gen 0 data_type btree [ 239.692037][ T6153] journal_seq_nonempty 7 [ 239.692043][ T6153] journal_seq_empty 0 [ 239.692049][ T6153] need_discard 1 [ 239.692054][ T6153] need_inc_gen 1 [ 239.692060][ T6153] dirty_sectors 32 [ 239.692067][ T6153] stripe_sectors 0 [ 239.692072][ T6153] cached_sectors 0 [ 239.692075][ T6153] stripe 0 [ 239.692079][ T6153] stripe_redundancy 0 [ 239.692082][ T6153] io_time[READ] 1 [ 239.692087][ T6153] io_time[WRITE] 1280 [ 239.692093][ T6153] fragmentation 268435456 [ 239.692098][ T6153] bp_start 8 [ 239.692103][ T6153] , fixing [ 239.732051][ T6153] done [ 239.734096][ T6153] bcachefs (loop0): bucket_gens_init... done [ 239.737861][ T6153] bcachefs (loop0): check_snapshot_trees... done [ 239.741963][ T6153] bcachefs (loop0): check_snapshots... [ 239.742369][ T6153] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 239.742380][ T6153] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 239.756122][ T6153] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 239.756135][ T6153] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 239.771153][ T6153] bcachefs (loop0): cannot start: journal seq overflow [ 239.774109][ T6153] bcachefs (loop0): fatal error - emergency read only [ 239.778303][ T5486] bcachefs (loop0): going read-only [ 239.781779][ T5486] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 239.786268][ T6153] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 239.791971][ T5486] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 239.797206][ T6153] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 239.801558][ T5486] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 239.804954][ T6153] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 239.810378][ T6153] bcachefs (loop0): shutting down [ 239.830800][ T5486] bcachefs (loop0): finished waiting for writes to stop [ 239.833707][ T5486] bcachefs (loop0): done going read-only, filesystem not clean [ 239.864733][ T6153] bcachefs (loop0): shutdown complete [ 240.409475][ T6153] bcachefs: bch2_fs_get_tree() error: journal_shutdown [ 240.755549][ T6163] loop0: detected capacity change from 0 to 32768 [ 240.851184][ T6163] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 240.858211][ T6163] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 240.865368][ T6163] bcachefs (loop0): Version upgrade required: [ 240.865368][ T6163] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 240.865368][ T6163] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 240.865368][ T6163] 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 [ 240.905713][ T6163] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 240.905730][ T6163] 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 [ 240.905738][ T6163] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 240.922373][ T6163] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 240.922373][ T6163] btree=dirents level=0 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 [ 240.934699][ T6163] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 240.934715][ T6163] 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 [ 240.934724][ T6163] 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 [ 240.952733][ T6163] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 240.952733][ T6163] 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 [ 240.965728][ T6163] bcachefs (loop0): accounting_read... done [ 240.968352][ T6163] bcachefs (loop0): alloc_read... done [ 240.975264][ T6163] bcachefs (loop0): snapshots_read... done [ 240.977606][ T6163] bcachefs (loop0): check_allocations... [ 240.980048][ T6163] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 240.980063][ T6163] 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 [ 240.995780][ T6163] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 240.995796][ T6163] 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 [ 241.011727][ T6163] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 241.011742][ T6163] 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 [ 241.024417][ T6163] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 241.024432][ T6163] 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 [ 241.037511][ T6163] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 241.037526][ T6163] 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 [ 241.051523][ T6163] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.055612][ T6163] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.061327][ T6163] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.065289][ T6163] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.071947][ T6163] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.076005][ T6163] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.081446][ T6163] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.085536][ T6163] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.091766][ T6163] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.095817][ T6163] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.101493][ T6163] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.107723][ T6163] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.114016][ T6163] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.118267][ T6163] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.124519][ T6163] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.130731][ T6163] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 241.135192][ T6163] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.140175][ T6163] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.145431][ T6163] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.151530][ T6163] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.156416][ T6163] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.161468][ T6163] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.166278][ T6163] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.172362][ T6163] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.177706][ T6163] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.184199][ T6163] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.190889][ T6163] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.195040][ T6163] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.200654][ T6163] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.204625][ T6163] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.213247][ T6163] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.217311][ T6163] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.222755][ T6163] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.226849][ T6163] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.234836][ T6163] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.240570][ T6163] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.244982][ T6163] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.248579][ T6163] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.255005][ T6163] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.259656][ T6163] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.264286][ T6163] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.268348][ T6163] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.274480][ T6163] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.278586][ T6163] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.284031][ T6163] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.288011][ T6163] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.294226][ T6163] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 241.298329][ T6163] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 241.304014][ T6163] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 241.308251][ T6163] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 241.316684][ T6163] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 241.322266][ T6163] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 241.327029][ T6163] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 241.332735][ T6163] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 241.337411][ T6163] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 241.343917][ T6163] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 241.347809][ T6163] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 241.354123][ T6163] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 241.358163][ T6163] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 241.363933][ T6163] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 241.370706][ T6163] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 241.374741][ T6163] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 241.380339][ T6163] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 241.384431][ T6163] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 241.390890][ T6163] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 241.396322][ T6163] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.401178][ T6163] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.405743][ T6163] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.411328][ T6163] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.419446][ T6163] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.423693][ T6163] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.428169][ T6163] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.434027][ T6163] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.439813][ T6163] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.443913][ T6163] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.448603][ T6163] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.458124][ T6163] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.463829][ T6163] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.467802][ T6163] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.473993][ T6163] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 241.478101][ T6163] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 241.484650][ T6163] done [ 241.486937][ T6163] bcachefs (loop0): going read-write [ 241.494671][ T6163] bcachefs (loop0): journal_replay... done [ 241.546872][ T6163] bcachefs (loop0): check_alloc_info... done [ 241.555635][ T6163] bcachefs (loop0): check_lrus... done [ 241.560680][ T6163] bcachefs (loop0): check_btree_backpointers... done [ 241.564486][ T6163] bcachefs (loop0): check_backpointers_to_extents... done [ 241.575097][ T6163] bcachefs (loop0): check_extents_to_backpointers... [ 241.576314][ T6163] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 241.584202][ T6163] done [ 241.587065][ T6163] bcachefs (loop0): check_alloc_to_lru_refs... [ 241.588104][ T6163] bcachefs (loop0): missing fragmentation lru entry [ 241.588117][ T6163] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 241.588124][ T6163] gen 0 oldest_gen 0 data_type btree [ 241.588137][ T6163] journal_seq_nonempty 4 [ 241.588144][ T6163] journal_seq_empty 0 [ 241.588150][ T6163] need_discard 1 [ 241.588156][ T6163] need_inc_gen 1 [ 241.588162][ T6163] dirty_sectors 32 [ 241.588167][ T6163] stripe_sectors 0 [ 241.588174][ T6163] cached_sectors 0 [ 241.588180][ T6163] stripe 0 [ 241.588186][ T6163] stripe_redundancy 0 [ 241.588191][ T6163] io_time[READ] 1 [ 241.588197][ T6163] io_time[WRITE] 256 [ 241.588202][ T6163] fragmentation 268435456 [ 241.588208][ T6163] bp_start 8 [ 241.588213][ T6163] , fixing [ 241.635209][ T6163] bcachefs (loop0): missing fragmentation lru entry [ 241.635224][ T6163] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 241.635230][ T6163] gen 0 oldest_gen 0 data_type btree [ 241.635237][ T6163] journal_seq_nonempty 4 [ 241.635242][ T6163] journal_seq_empty 0 [ 241.635249][ T6163] need_discard 1 [ 241.635255][ T6163] need_inc_gen 1 [ 241.635260][ T6163] dirty_sectors 32 [ 241.635265][ T6163] stripe_sectors 0 [ 241.635270][ T6163] cached_sectors 0 [ 241.635276][ T6163] stripe 0 [ 241.635282][ T6163] stripe_redundancy 0 [ 241.635288][ T6163] io_time[READ] 1 [ 241.635294][ T6163] io_time[WRITE] 512 [ 241.635300][ T6163] fragmentation 268435456 [ 241.635306][ T6163] bp_start 8 [ 241.635313][ T6163] , fixing [ 241.675801][ T6163] bcachefs (loop0): missing fragmentation lru entry [ 241.675815][ T6163] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 241.675822][ T6163] gen 0 oldest_gen 0 data_type btree [ 241.675829][ T6163] journal_seq_nonempty 1 [ 241.675834][ T6163] journal_seq_empty 0 [ 241.675840][ T6163] need_discard 1 [ 241.675845][ T6163] need_inc_gen 1 [ 241.675850][ T6163] dirty_sectors 32 [ 241.675855][ T6163] stripe_sectors 0 [ 241.675862][ T6163] cached_sectors 0 [ 241.675868][ T6163] stripe 0 [ 241.675873][ T6163] stripe_redundancy 0 [ 241.675878][ T6163] io_time[READ] 1 [ 241.675883][ T6163] io_time[WRITE] 1 [ 241.675891][ T6163] fragmentation 268435456 [ 241.675897][ T6163] bp_start 8 [ 241.675902][ T6163] , fixing [ 241.716772][ T6163] bcachefs (loop0): missing fragmentation lru entry [ 241.716786][ T6163] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 241.716794][ T6163] gen 0 oldest_gen 0 data_type btree [ 241.716801][ T6163] journal_seq_nonempty 0 [ 241.716808][ T6163] journal_seq_empty 0 [ 241.716814][ T6163] need_discard 0 [ 241.716821][ T6163] need_inc_gen 0 [ 241.716827][ T6163] dirty_sectors 32 [ 241.716834][ T6163] stripe_sectors 0 [ 241.716840][ T6163] cached_sectors 0 [ 241.716847][ T6163] stripe 0 [ 241.716853][ T6163] stripe_redundancy 0 [ 241.716860][ T6163] io_time[READ] 0 [ 241.716866][ T6163] io_time[WRITE] 0 [ 241.716872][ T6163] fragmentation 268435456 [ 241.716879][ T6163] bp_start 8 [ 241.716885][ T6163] , fixing [ 241.759501][ T6163] bcachefs (loop0): missing fragmentation lru entry [ 241.759517][ T6163] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 241.759529][ T6163] gen 0 oldest_gen 0 data_type btree [ 241.759536][ T6163] journal_seq_nonempty 0 [ 241.759542][ T6163] journal_seq_empty 0 [ 241.759549][ T6163] need_discard 0 [ 241.759556][ T6163] need_inc_gen 0 [ 241.759562][ T6163] dirty_sectors 32 [ 241.759569][ T6163] stripe_sectors 0 [ 241.759576][ T6163] cached_sectors 0 [ 241.759582][ T6163] stripe 0 [ 241.759589][ T6163] stripe_redundancy 0 [ 241.759595][ T6163] io_time[READ] 0 [ 241.759602][ T6163] io_time[WRITE] 0 [ 241.759608][ T6163] fragmentation 268435456 [ 241.759615][ T6163] bp_start 8 [ 241.759621][ T6163] , fixing [ 241.802217][ T6163] bcachefs (loop0): missing fragmentation lru entry [ 241.802231][ T6163] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 241.802238][ T6163] gen 0 oldest_gen 0 data_type btree [ 241.802245][ T6163] journal_seq_nonempty 7 [ 241.802252][ T6163] journal_seq_empty 0 [ 241.802258][ T6163] need_discard 1 [ 241.802264][ T6163] need_inc_gen 1 [ 241.802271][ T6163] dirty_sectors 32 [ 241.802277][ T6163] stripe_sectors 0 [ 241.802283][ T6163] cached_sectors 0 [ 241.802289][ T6163] stripe 0 [ 241.802296][ T6163] stripe_redundancy 0 [ 241.802302][ T6163] io_time[READ] 1 [ 241.802309][ T6163] io_time[WRITE] 1280 [ 241.802315][ T6163] fragmentation 268435456 [ 241.802321][ T6163] bp_start 8 [ 241.802327][ T6163] , fixing [ 241.844931][ T6163] done [ 241.847242][ T6163] bcachefs (loop0): bucket_gens_init... done [ 241.853751][ T6163] bcachefs (loop0): check_snapshot_trees... done [ 241.856963][ T6163] bcachefs (loop0): check_snapshots... [ 241.857497][ T6163] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 241.857510][ T6163] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 241.871168][ T6163] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 241.871181][ T6163] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 241.881286][ T13] bcachefs (loop0): cannot start: journal seq overflow [ 241.884569][ T13] bcachefs (loop0): fatal error - emergency read only [ 241.887374][ T5486] bcachefs (loop0): going read-only [ 241.891879][ T6163] bcachefs (loop0): bch2_check_snapshots(): error journal_shutdown [ 241.895473][ T6163] bcachefs (loop0): bch2_fs_recovery(): error journal_shutdown [ 241.898517][ T6163] bcachefs (loop0): bch2_fs_start(): error starting filesystem journal_shutdown [ 241.903252][ T5486] bcachefs (loop0): finished waiting for writes to stop [ 241.906022][ T5486] bcachefs (loop0): flushing journal and stopping allocators, journal seq 72057594037927935 [ 241.911791][ T5486] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 72057594037927935 [ 241.916105][ T6163] bcachefs (loop0): shutting down [ 241.918306][ T5486] bcachefs (loop0): unclean shutdown complete, journal seq 72057594037927935 [ 241.949334][ T5486] bcachefs (loop0): done going read-only, filesystem not clean [ 241.992478][ T6163] bcachefs (loop0): shutdown complete [ 242.552004][ T6163] bcachefs: bch2_fs_get_tree() error: journal_shutdown 2025/04/16 18:55:18 executed programs: 54 [ 242.904545][ T6173] loop0: detected capacity change from 0 to 32768 [ 243.125265][ T6173] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 243.149853][ T6173] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 243.155935][ T6173] bcachefs (loop0): Version upgrade required: [ 243.155935][ T6173] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 243.155935][ T6173] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.25: extent_flags [ 243.155935][ T6173] 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 [ 243.222495][ T6173] bcachefs (loop0): bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 243.222512][ T6173] 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 [ 243.222520][ T6173] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 243.255477][ T6173] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 243.255477][ T6173] btree=dirents level=0 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 [ 243.280569][ T6173] bcachefs (loop0): bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 243.280586][ T6173] 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 [ 243.280596][ T6173] 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 [ 243.315752][ T6173] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 243.315752][ T6173] 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 [ 243.353680][ T6173] bcachefs (loop0): accounting_read... done [ 243.356695][ T6173] bcachefs (loop0): alloc_read... done [ 243.361811][ T6173] bcachefs (loop0): snapshots_read... done [ 243.364382][ T6173] bcachefs (loop0): check_allocations... [ 243.372395][ T6173] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 243.372412][ T6173] 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 [ 243.411398][ T6173] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 243.411415][ T6173] 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 [ 243.431746][ T6173] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 243.431761][ T6173] 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 [ 243.460281][ T6173] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 243.460296][ T6173] 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 [ 243.492782][ T6173] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 243.492799][ T6173] 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 [ 243.511565][ T6173] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.515547][ T6173] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.534705][ T6173] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.544711][ T6173] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.551248][ T6173] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.565639][ T6173] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.576185][ T6173] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.586707][ T6173] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.593182][ T6173] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.609550][ T6173] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.614010][ T6173] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.617831][ T6173] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.640918][ T6173] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.644649][ T6173] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.649767][ T6173] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.660760][ T6173] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 243.665070][ T6173] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.689611][ T6173] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.694115][ T6173] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.698233][ T6173] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.719021][ T6173] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.722943][ T6173] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.727440][ T6173] bcachefs (loop0): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.750110][ T6173] bcachefs (loop0): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.754713][ T6173] bcachefs (loop0): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.769861][ T6173] bcachefs (loop0): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.774469][ T6173] bcachefs (loop0): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.778367][ T6173] bcachefs (loop0): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.801798][ T6173] bcachefs (loop0): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.806028][ T6173] bcachefs (loop0): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.839170][ T6173] bcachefs (loop0): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.843221][ T6173] bcachefs (loop0): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.848056][ T6173] bcachefs (loop0): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.872358][ T6173] bcachefs (loop0): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.876949][ T6173] bcachefs (loop0): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.890836][ T6173] bcachefs (loop0): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.895491][ T6173] bcachefs (loop0): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.910229][ T6173] bcachefs (loop0): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.914866][ T6173] bcachefs (loop0): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.930834][ T6173] bcachefs (loop0): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.935668][ T6173] bcachefs (loop0): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.949654][ T6173] bcachefs (loop0): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.954296][ T6173] bcachefs (loop0): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.976605][ T6173] bcachefs (loop0): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.986030][ T6173] bcachefs (loop0): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.000915][ T6173] bcachefs (loop0): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.005614][ T6173] bcachefs (loop0): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 244.030773][ T6173] bcachefs (loop0): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 244.035569][ T6173] bcachefs (loop0): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 244.056139][ T6173] bcachefs (loop0): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 244.077709][ T6173] bcachefs (loop0): bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 244.082637][ T6173] bcachefs (loop0): bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 244.087068][ T6173] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 244.109032][ T6173] bcachefs (loop0): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 244.113576][ T6173] bcachefs (loop0): bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 244.117827][ T6173] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 244.139306][ T6173] bcachefs (loop0): bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 244.143821][ T6173] bcachefs (loop0): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 244.147791][ T6173] bcachefs (loop0): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 244.172039][ T6173] bcachefs (loop0): bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 244.176658][ T6173] bcachefs (loop0): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 244.189438][ T6173] bcachefs (loop0): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 244.194086][ T6173] bcachefs (loop0): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 244.198164][ T6173] bcachefs (loop0): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 244.220673][ T6173] bcachefs (loop0): bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 244.225431][ T6173] bcachefs (loop0): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.240943][ T6173] bcachefs (loop0): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.245537][ T6173] bcachefs (loop0): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.261595][ T6173] bcachefs (loop0): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.266433][ T6173] bcachefs (loop0): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.285039][ T6173] bcachefs (loop0): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.304424][ T6173] bcachefs (loop0): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.308351][ T6173] bcachefs (loop0): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.332366][ T6173] bcachefs (loop0): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.336353][ T6173] bcachefs (loop0): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.360054][ T6173] bcachefs (loop0): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.380381][ T6173] bcachefs (loop0): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.400749][ T6173] bcachefs (loop0): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.404790][ T6173] bcachefs (loop0): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.429311][ T6173] bcachefs (loop0): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.433300][ T6173] bcachefs (loop0): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.462208][ T6173] done [ 244.471684][ T6173] bcachefs (loop0): going read-write [ 244.496997][ T6173] bcachefs (loop0): journal_replay... done [ 244.609081][ T6173] bcachefs (loop0): check_alloc_info... done [ 244.624349][ T6173] bcachefs (loop0): check_lrus... done [ 244.642983][ T6173] bcachefs (loop0): check_btree_backpointers... done [ 244.653088][ T6173] bcachefs (loop0): check_backpointers_to_extents... done [ 244.693074][ T6173] bcachefs (loop0): check_extents_to_backpointers... [ 244.694627][ T6173] bcachefs (loop0): scanning for missing backpointers in 7/128 buckets [ 244.715213][ T6173] done [ 244.721305][ T6173] bcachefs (loop0): check_alloc_to_lru_refs... [ 244.722351][ T6173] bcachefs (loop0): missing fragmentation lru entry [ 244.722363][ T6173] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 244.722369][ T6173] gen 0 oldest_gen 0 data_type btree [ 244.722375][ T6173] journal_seq_nonempty 4 [ 244.722380][ T6173] journal_seq_empty 0 [ 244.722386][ T6173] need_discard 1 [ 244.722392][ T6173] need_inc_gen 1 [ 244.722399][ T6173] dirty_sectors 32 [ 244.722404][ T6173] stripe_sectors 0 [ 244.722410][ T6173] cached_sectors 0 [ 244.722417][ T6173] stripe 0 [ 244.722423][ T6173] stripe_redundancy 0 [ 244.722429][ T6173] io_time[READ] 1 [ 244.722434][ T6173] io_time[WRITE] 256 [ 244.722440][ T6173] fragmentation 268435456 [ 244.722445][ T6173] bp_start 8 [ 244.722451][ T6173] , fixing [ 244.855393][ T6173] bcachefs (loop0): missing fragmentation lru entry [ 244.855407][ T6173] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: