running recovery pass check_extents_to_backpointers (17), currently at check_extents (29) [ 291.019952][T12503] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 291.019967][T12503] bcachefs (loop1): check_alloc_info... done [ 291.025490][T12503] bcachefs (loop1): check_lrus... done [ 291.030049][T12503] bcachefs (loop1): check_btree_backpointers... [ 291.031524][T12511] done [ 291.031876][T12511] bcachefs (loop7): check_extents_to_backpointers... [ 291.032314][T12511] bcachefs (loop7): scanning for missing backpointers in 1/128 buckets [ 291.035652][T12503] done [ 291.035672][T12503] bcachefs (loop1): check_backpointers_to_extents... done [ 291.036888][T12503] bcachefs (loop1): check_extents_to_backpointers... [ 291.037543][T12511] done [ 291.038031][T12511] bcachefs (loop7): check_indirect_extents... [ 291.038189][T12503] done [ 291.038195][T12503] bcachefs (loop1): check_alloc_to_lru_refs... done [ 291.039077][T12511] done [ 291.039085][T12511] bcachefs (loop7): check_dirents... [ 291.041129][T12526] loop8: detected capacity change from 0 to 32768 [ 291.042705][T12511] bcachefs (loop7): hash table key at wrong offset: should be at 331005371 [ 291.042712][T12511] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 291.043111][T12511] bcachefs (loop7): hash table key at wrong offset: should be at 15355471 [ 291.043116][T12511] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 291.046529][T12511] bcachefs (loop7): hash table key at wrong offset: should be at 4068592972 [ 291.046535][T12511] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 291.046647][T12511] bcachefs (loop7): hash table key at wrong offset: should be at 3788586680 [ 291.046652][T12511] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 291.046755][T12511] bcachefs (loop7): hash table key at wrong offset: should be at 117639183 [ 291.046759][T12511] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 291.046862][T12511] bcachefs (loop7): hash table key at wrong offset: should be at 3087481628 [ 291.046866][T12511] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 291.046978][T12511] bcachefs (loop7): check_dirents requires second pass [ 291.047117][T12511] bcachefs (loop7): inode 536870914:4294967295 has wrong backpointer: [ 291.047121][T12511] got 0:3087481628 [ 291.047125][T12511] should be 4096:3087481628, fixing [ 291.047216][T12511] bcachefs (loop7): directory with wrong i_nlink: got 0, should be 2 [ 291.047220][T12511] /, fixing [ 291.047543][T12503] bcachefs (loop1): bucket_gens_init... done [ 291.048633][T12503] bcachefs (loop1): check_snapshot_trees... done [ 291.049250][T12503] bcachefs (loop1): check_snapshots... done [ 291.050623][T12503] bcachefs (loop1): check_subvols... done [ 291.052646][T12503] bcachefs (loop1): check_subvol_children... done [ 291.054147][T12503] bcachefs (loop1): delete_dead_snapshots... done [ 291.054392][T12503] bcachefs (loop1): check_inodes... [ 291.054947][T12511] done [ 291.055252][T12503] done [ 291.055257][T12503] bcachefs (loop1): check_extents... [ 291.055608][T12511] bcachefs (loop7): check_xattrs... done [ 291.057859][T12511] bcachefs (loop7): check_root... [ 291.082567][T12503] done [ 291.082593][T12503] bcachefs (loop1): check_indirect_extents... [ 291.086124][T12511] done [ 291.086178][T12511] bcachefs (loop7): check_unreachable_inodes... [ 291.086388][T12503] done [ 291.086397][T12503] bcachefs (loop1): check_dirents... done [ 291.087062][T12503] bcachefs (loop1): check_xattrs... [ 291.087386][T12511] done [ 291.087391][T12511] bcachefs (loop7): check_subvolume_structure... done [ 291.091904][T12511] bcachefs (loop7): check_directory_structure... done [ 291.092302][T12511] bcachefs (loop7): check_nlinks... [ 291.092484][T12511] bcachefs (loop7): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 291.092815][T12511] done [ 291.093073][T12511] bcachefs (loop7): check_rebalance_work... done [ 291.093417][T12511] bcachefs (loop7): resume_logged_ops... done [ 291.093653][T12511] bcachefs (loop7): delete_dead_inodes... [ 291.094218][T12503] done [ 291.094224][T12503] bcachefs (loop1): check_root... done [ 291.094613][T12503] bcachefs (loop1): check_unreachable_inodes... [ 291.094824][T12511] done [ 291.094833][T12511] bcachefs (loop7): set_fs_needs_rebalance... [ 291.095990][T12503] done [ 291.095996][T12503] bcachefs (loop1): check_subvolume_structure... done [ 291.096241][T12503] bcachefs (loop1): check_directory_structure... done [ 291.096468][T12503] bcachefs (loop1): check_nlinks... done [ 291.096834][T12503] bcachefs (loop1): check_rebalance_work... done [ 291.099209][T12503] bcachefs (loop1): resume_logged_ops... done [ 291.114861][T12503] bcachefs (loop1): delete_dead_inodes... done [ 291.119118][T12503] bcachefs (loop1): set_fs_needs_rebalance... [ 291.125423][T12511] done [ 291.127999][T12503] done [ 291.135089][T12503] bcachefs (loop1): done starting filesystem [ 291.152601][T12511] bcachefs (loop7): Fixed errors, running fsck a second time to verify fs is clean [ 291.152633][T12511] bcachefs (loop7): check_alloc_info... [ 291.155073][T12530] bcachefs (loop9): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 291.156850][T12511] done [ 291.156857][T12511] bcachefs (loop7): check_lrus... [ 291.157811][T12530] allowing incompatible features above 0.0: (unknown version) [ 291.157830][T12530] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 291.157845][T12530] bcachefs (loop9): Using encoding defined by superblock: utf8-12.1.0 [ 291.157942][T12530] bcachefs (loop9): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 291.157949][T12530] invalid extent entry type (got 7, max 7), deleting [ 291.157977][T12530] bcachefs (loop9): recovering from clean shutdown, journal seq 10 [ 291.158030][T12530] bcachefs (loop9): Version upgrade required: [ 291.158030][T12530] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 291.158030][T12530] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 291.158030][T12530] 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,check_rebalance_work,set_fs_needs_rebalance [ 291.158222][T12511] done [ 291.158235][T12511] bcachefs (loop7): check_btree_backpointers... done [ 291.158661][T12511] bcachefs (loop7): check_backpointers_to_extents... done [ 291.169252][T12511] bcachefs (loop7): check_extents_to_backpointers... [ 291.178379][ T6697] bcachefs (loop1): shutting down [ 291.178393][ T6697] bcachefs (loop1): going read-only [ 291.180001][ T6697] bcachefs (loop1): finished waiting for writes to stop [ 291.180179][T12511] done [ 291.180195][T12511] bcachefs (loop7): check_alloc_to_lru_refs... done [ 291.187116][T12526] bcachefs (loop8): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 291.187125][T12526] allowing incompatible features above 0.0: (unknown version) [ 291.187130][T12526] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 291.187138][T12526] bcachefs (loop8): Using encoding defined by superblock: utf8-12.1.0 [ 291.187223][T12526] bcachefs (loop8): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 291.187229][T12526] invalid extent entry type (got 7, max 7), deleting [ 291.187254][T12526] bcachefs (loop8): recovering from clean shutdown, journal seq 10 [ 291.187310][T12526] bcachefs (loop8): Version upgrade required: [ 291.187310][T12526] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 291.187310][T12526] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 291.187310][T12526] 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,check_rebalance_work,set_fs_needs_rebalance [ 291.187518][T12511] bcachefs (loop7): bucket_gens_init... done [ 291.196995][T12511] bcachefs (loop7): check_snapshot_trees... done [ 291.198123][T12511] bcachefs (loop7): check_snapshots... done [ 291.207429][T12511] bcachefs (loop7): check_subvols... done [ 291.207773][T12511] bcachefs (loop7): check_subvol_children... done [ 291.208492][T12511] bcachefs (loop7): delete_dead_snapshots... [ 291.209902][T12530] bcachefs (loop9): accounting_read... [ 291.210012][T12511] done [ 291.210022][T12511] bcachefs (loop7): check_inodes... done [ 291.210435][T12511] bcachefs (loop7): check_extents... done [ 291.211387][T12511] bcachefs (loop7): check_indirect_extents... [ 291.215752][ T6697] bcachefs (loop1): flushing journal and stopping allocators, journal seq 32 [ 291.215926][ T6697] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 32 [ 291.216729][ T6697] bcachefs (loop1): clean shutdown complete, journal seq 33 [ 291.217076][ T6697] bcachefs (loop1): marking filesystem clean [ 291.218374][T12511] done [ 291.218382][T12511] bcachefs (loop7): check_dirents... done [ 291.218928][T12511] bcachefs (loop7): check_xattrs... done [ 291.232331][T12511] bcachefs (loop7): check_root... done [ 291.239098][T12511] bcachefs (loop7): check_unreachable_inodes... [ 291.240691][T12530] done [ 291.240711][T12530] bcachefs (loop9): alloc_read... [ 291.241124][T12526] bcachefs (loop8): accounting_read... [ 291.241402][T12530] done [ 291.241407][T12530] bcachefs (loop9): snapshots_read... done [ 291.241957][T12530] bcachefs (loop9): check_allocations... [ 291.242268][T12530] bcachefs (loop9): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 291.242274][T12530] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 291.242421][T12530] bcachefs (loop9): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 291.242426][T12530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 291.244292][T12511] done [ 291.244308][T12511] bcachefs (loop7): check_subvolume_structure... done [ 291.244630][T12511] bcachefs (loop7): check_directory_structure... done [ 291.245599][T12511] bcachefs (loop7): check_nlinks... done [ 291.256870][T12530] bcachefs (loop9): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 291.256876][T12530] 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 [ 291.259127][T12511] bcachefs (loop7): check_rebalance_work... [ 291.260006][T12530] bcachefs (loop9): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 291.260013][T12530] 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 [ 291.260135][T12530] bcachefs (loop9): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 291.260140][T12530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 291.260961][T12511] done [ 291.260972][T12511] bcachefs (loop7): resume_logged_ops... [ 291.261354][T12530] bcachefs (loop9): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 291.261359][T12530] 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 [ 291.261744][T12511] done [ 291.261749][T12511] bcachefs (loop7): delete_dead_inodes... done [ 291.265962][T12511] bcachefs (loop7): set_fs_needs_rebalance... [ 291.266315][T12530] bcachefs (loop9): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 291.266321][T12530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 291.266441][T12530] bcachefs (loop9): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 291.266445][T12530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 291.266943][T12511] done [ 291.267211][T12530] bcachefs (loop9): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 291.267216][T12530] 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 [ 291.267351][T12530] bcachefs (loop9): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 291.267356][T12530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 291.267464][T12530] bcachefs (loop9): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 291.267468][T12530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 291.267473][T12530] Ratelimiting new instances of previous error [ 291.267594][T12530] bcachefs (loop9): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.267620][T12530] bcachefs (loop9): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.267754][T12530] bcachefs (loop9): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.267780][T12530] bcachefs (loop9): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.267870][T12530] bcachefs (loop9): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.267893][T12530] bcachefs (loop9): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.267936][T12530] bcachefs (loop9): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.267958][T12530] bcachefs (loop9): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.268008][T12530] bcachefs (loop9): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.268029][T12530] bcachefs (loop9): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.268068][T12530] bcachefs (loop9): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.268089][T12530] bcachefs (loop9): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.268128][T12530] bcachefs (loop9): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.268151][T12530] bcachefs (loop9): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.268192][T12530] bcachefs (loop9): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.268213][T12530] bcachefs (loop9): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.268262][T12530] bcachefs (loop9): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.268288][T12530] bcachefs (loop9): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 291.268332][T12530] bcachefs (loop9): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 291.268355][T12530] bcachefs (loop9): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 291.268403][T12530] bcachefs (loop9): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 291.268407][T12530] Ratelimiting new instances of previous error [ 291.268432][T12530] bcachefs (loop9): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 291.268436][T12530] Ratelimiting new instances of previous error [ 291.274869][T12511] bcachefs (loop7): done starting filesystem [ 291.287445][T12530] done [ 291.291690][T12530] bcachefs (loop9): going read-write [ 291.310864][ T6697] bcachefs (loop1): shutdown complete [ 291.311742][T12526] done [ 291.311749][T12526] bcachefs (loop8): alloc_read... [ 291.312026][ T8958] bcachefs (loop7): shutting down [ 291.312035][ T8958] bcachefs (loop7): going read-only [ 291.312049][ T8958] bcachefs (loop7): finished waiting for writes to stop [ 291.312474][T12526] done [ 291.312479][T12526] bcachefs (loop8): snapshots_read... done [ 291.312765][T12526] bcachefs (loop8): check_allocations... [ 291.313074][T12526] bcachefs (loop8): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 291.313080][T12526] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 291.313224][T12526] bcachefs (loop8): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 291.313229][T12526] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 291.317090][T12530] bcachefs (loop9): journal_replay... [ 291.326069][T12526] bcachefs (loop8): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 291.326077][T12526] 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 [ 291.335460][T12526] bcachefs (loop8): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 291.335468][T12526] 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 [ 291.335616][T12526] bcachefs (loop8): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 291.335621][T12526] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 291.342064][T12526] bcachefs (loop8): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 291.342073][T12526] 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 [ 291.342747][T12526] bcachefs (loop8): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 291.342752][T12526] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 291.342863][T12526] bcachefs (loop8): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 291.342867][T12526] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 291.347214][T12530] done [ 291.358861][T12530] bcachefs (loop9): check_alloc_info... [ 291.359474][T12530] bcachefs (loop9): hole in alloc btree missing in freespace btree [ 291.359481][T12530] device 0 buckets 26-27, fixing [ 291.365920][T12526] bcachefs (loop8): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 291.365927][T12526] 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 [ 291.366079][T12526] bcachefs (loop8): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 291.366083][T12526] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 291.366203][T12526] bcachefs (loop8): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 291.366208][T12526] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 291.366212][T12526] Ratelimiting new instances of previous error [ 291.366329][T12526] bcachefs (loop8): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366361][T12526] bcachefs (loop8): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.366484][T12526] bcachefs (loop8): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366507][T12526] bcachefs (loop8): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.366601][T12526] bcachefs (loop8): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366626][T12526] bcachefs (loop8): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.366672][T12526] bcachefs (loop8): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366696][T12526] bcachefs (loop8): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.366739][T12526] bcachefs (loop8): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366764][T12526] bcachefs (loop8): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.366804][T12526] bcachefs (loop8): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366828][T12526] bcachefs (loop8): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.366867][T12526] bcachefs (loop8): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366889][T12526] bcachefs (loop8): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.366937][T12526] bcachefs (loop8): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.366960][T12526] bcachefs (loop8): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.367003][T12526] bcachefs (loop8): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.367024][T12526] bcachefs (loop8): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 291.367066][T12526] bcachefs (loop8): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 291.367091][T12526] bcachefs (loop8): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 291.367138][T12526] bcachefs (loop8): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 291.367142][T12526] Ratelimiting new instances of previous error [ 291.367171][T12526] bcachefs (loop8): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 291.367175][T12526] Ratelimiting new instances of previous error [ 291.394303][T12530] done [ 291.401099][T12526] done [ 291.401914][T12530] bcachefs (loop9): check_lrus... done [ 291.402527][T12530] bcachefs (loop9): check_btree_backpointers... done [ 291.403271][T12530] bcachefs (loop9): check_backpointers_to_extents... [ 291.404178][T12526] bcachefs (loop8): going read-write [ 291.404557][T12530] done [ 291.405112][T12530] bcachefs (loop9): check_extents_to_backpointers... [ 291.405382][T12530] bcachefs (loop9): scanning for missing backpointers in 5/128 buckets [ 291.415381][T12530] done [ 291.415669][T12530] bcachefs (loop9): check_alloc_to_lru_refs... done [ 291.418903][T12530] bcachefs (loop9): bucket_gens_init... done [ 291.421320][T12526] bcachefs (loop8): journal_replay... [ 291.425574][T12530] bcachefs (loop9): check_snapshot_trees... done [ 291.429732][T12530] bcachefs (loop9): check_snapshots... [ 291.429915][T12530] bcachefs (loop9): snapshot points to missing/incorrect tree: [ 291.429922][T12530] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 291.444924][T12534] loop2: detected capacity change from 0 to 32768 [ 291.455025][ T8958] bcachefs (loop7): flushing journal and stopping allocators, journal seq 34 [ 291.455175][ T8958] bcachefs (loop7): flushing journal and stopping allocators complete, journal seq 34 [ 291.464242][ T8958] bcachefs (loop7): clean shutdown complete, journal seq 35 [ 291.464637][ T8958] bcachefs (loop7): marking filesystem clean [ 291.465149][T12530] done [ 291.467178][T12530] bcachefs (loop9): check_subvols... [ 291.467440][T12530] bcachefs (loop9): subvol root 4096:4294967295 has wrong bi_subvol field: got 0, should be 1, fixing [ 291.471403][T12530] done [ 291.471721][T12530] bcachefs (loop9): check_subvol_children... done [ 291.475494][T12530] bcachefs (loop9): delete_dead_snapshots... done [ 291.477231][T12530] bcachefs (loop9): check_inodes... [ 291.478494][T12550] bcachefs (loop9): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 291.478515][T12550] running recovery pass check_extents_to_backpointers (17), currently at check_inodes (28) [ 291.483556][T12530] done [ 291.484536][T12530] bcachefs (loop9): check_extents_to_backpointers... [ 291.484843][T12530] bcachefs (loop9): scanning for missing backpointers in 2/128 buckets [ 291.486097][T12526] done [ 291.486566][T12526] bcachefs (loop8): check_alloc_info... [ 291.486979][T12526] bcachefs (loop8): hole in alloc btree missing in freespace btree [ 291.486985][T12526] device 0 buckets 26-27, fixing [ 291.515967][T12530] done [ 291.523827][T12526] done [ 291.524702][T12530] bcachefs (loop9): check_extents... [ 291.526073][T12526] bcachefs (loop8): check_lrus... [ 291.526572][T12530] done [ 291.526877][T12526] done [ 291.526886][T12526] bcachefs (loop8): check_btree_backpointers... [ 291.527268][T12530] bcachefs (loop9): check_indirect_extents... [ 291.528026][T12526] done [ 291.528037][T12526] bcachefs (loop8): check_backpointers_to_extents... [ 291.528594][T12530] done [ 291.528600][T12530] bcachefs (loop9): check_dirents... [ 291.528845][T12530] bcachefs (loop9): hash table key at wrong offset: should be at 331005371 [ 291.528850][T12530] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 291.529239][T12530] bcachefs (loop9): hash table key at wrong offset: should be at 15355471 [ 291.529243][T12530] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 291.531703][T12530] bcachefs (loop9): hash table key at wrong offset: should be at 4068592972 [ 291.531709][T12530] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 291.531812][T12530] bcachefs (loop9): hash table key at wrong offset: should be at 3788586680 [ 291.531816][T12530] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 291.531942][T12530] bcachefs (loop9): hash table key at wrong offset: should be at 117639183 [ 291.531946][T12530] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 291.532041][T12530] bcachefs (loop9): hash table key at wrong offset: should be at 3087481628 [ 291.532045][T12530] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 291.532158][T12530] bcachefs (loop9): check_dirents requires second pass [ 291.532288][T12530] bcachefs (loop9): inode 536870914:4294967295 has wrong backpointer: [ 291.532292][T12530] got 0:3087481628 [ 291.532295][T12530] should be 4096:3087481628, fixing [ 291.532384][T12530] bcachefs (loop9): directory with wrong i_nlink: got 0, should be 2 [ 291.532388][T12530] /, fixing [ 291.535153][T12526] done [ 291.535575][T12526] bcachefs (loop8): check_extents_to_backpointers... [ 291.535819][T12526] bcachefs (loop8): scanning for missing backpointers in 5/128 buckets [ 291.539682][T12526] done [ 291.539921][T12526] bcachefs (loop8): check_alloc_to_lru_refs... done [ 291.540883][T12530] done [ 291.541150][T12530] bcachefs (loop9): check_xattrs... [ 291.557414][T12526] bcachefs (loop8): bucket_gens_init... [ 291.559089][T12530] done [ 291.559106][T12530] bcachefs (loop9): check_root... done [ 291.559993][T12530] bcachefs (loop9): check_unreachable_inodes... done [ 291.562435][T12530] bcachefs (loop9): check_subvolume_structure... done [ 291.562775][T12530] bcachefs (loop9): check_directory_structure... done [ 291.563011][T12530] bcachefs (loop9): check_nlinks... [ 291.563190][T12530] bcachefs (loop9): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 291.563598][T12526] done [ 291.563998][T12526] bcachefs (loop8): check_snapshot_trees... done [ 291.565180][T12530] done [ 291.567053][T12530] bcachefs (loop9): check_rebalance_work... done [ 291.567536][T12530] bcachefs (loop9): resume_logged_ops... done [ 291.567889][T12530] bcachefs (loop9): delete_dead_inodes... done [ 291.568161][T12530] bcachefs (loop9): set_fs_needs_rebalance... done [ 291.591827][T12526] bcachefs (loop8): check_snapshots... [ 291.591999][T12526] bcachefs (loop8): snapshot points to missing/incorrect tree: [ 291.592019][T12526] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 291.594373][T12526] done [ 291.594648][T12526] bcachefs (loop8): check_subvols... [ 291.594800][T12526] bcachefs (loop8): subvol root 4096:4294967295 has wrong bi_subvol field: got 0, should be 1, fixing [ 291.595101][T12526] done [ 291.595788][T12526] bcachefs (loop8): check_subvol_children... [ 291.595970][T12553] bcachefs (loop8): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 291.595976][T12553] running recovery pass check_extents_to_backpointers (17), currently at check_subvol_children (25) [ 291.598587][T12526] done [ 291.598595][T12526] bcachefs (loop8): check_extents_to_backpointers... [ 291.598852][T12526] bcachefs (loop8): scanning for missing backpointers in 1/128 buckets [ 291.602704][T12553] bcachefs (loop8): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 291.604142][T12526] done [ 291.604440][T12526] bcachefs (loop8): delete_dead_snapshots... done [ 291.604728][T12526] bcachefs (loop8): check_inodes... done [ 291.616199][T12526] bcachefs (loop8): check_extents... done [ 291.617252][T12526] bcachefs (loop8): check_indirect_extents... done [ 291.617886][T12526] bcachefs (loop8): check_dirents... [ 291.618110][T12526] bcachefs (loop8): hash table key at wrong offset: should be at 331005371 [ 291.618115][T12526] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 291.618498][T12526] bcachefs (loop8): hash table key at wrong offset: should be at 15355471 [ 291.618503][T12526] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 291.623312][T12526] bcachefs (loop8): hash table key at wrong offset: should be at 4068592972 [ 291.623319][T12526] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 291.623422][T12526] bcachefs (loop8): hash table key at wrong offset: should be at 3788586680 [ 291.623427][T12526] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 291.623535][T12526] bcachefs (loop8): hash table key at wrong offset: should be at 117639183 [ 291.623539][T12526] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 291.623649][T12526] bcachefs (loop8): hash table key at wrong offset: should be at 3087481628 [ 291.623653][T12526] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 291.623750][T12526] bcachefs (loop8): check_dirents requires second pass [ 291.623877][T12526] bcachefs (loop8): inode 536870914:4294967295 has wrong backpointer: [ 291.623880][T12526] got 0:3087481628 [ 291.623883][T12526] should be 4096:3087481628, fixing [ 291.623978][T12526] bcachefs (loop8): directory with wrong i_nlink: got 0, should be 2 [ 291.623982][T12526] /, fixing [ 291.632075][T12526] done [ 291.632376][T12526] bcachefs (loop8): check_xattrs... done [ 291.634007][T12526] bcachefs (loop8): check_root... [ 291.635485][T12530] bcachefs (loop9): Fixed errors, running fsck a second time to verify fs is clean [ 291.635495][T12530] bcachefs (loop9): check_alloc_info... [ 291.637365][T12526] done [ 291.637372][T12526] bcachefs (loop8): check_unreachable_inodes... done [ 291.637706][T12526] bcachefs (loop8): check_subvolume_structure... done [ 291.637939][T12526] bcachefs (loop8): check_directory_structure... done [ 291.638170][T12526] bcachefs (loop8): check_nlinks... [ 291.638337][T12526] bcachefs (loop8): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 291.638619][T12526] done [ 291.638863][T12526] bcachefs (loop8): check_rebalance_work... done [ 291.643635][T12526] bcachefs (loop8): resume_logged_ops... done [ 291.653855][T12530] done [ 291.653872][T12530] bcachefs (loop9): check_lrus... [ 291.657826][T12526] bcachefs (loop8): delete_dead_inodes... [ 291.658179][T12530] done [ 291.658186][T12530] bcachefs (loop9): check_btree_backpointers... [ 291.658740][T12526] done [ 291.658746][T12526] bcachefs (loop8): set_fs_needs_rebalance... [ 291.667787][T12530] done [ 291.667795][T12530] bcachefs (loop9): check_backpointers_to_extents... [ 291.668209][T12526] done [ 291.672445][T12530] done [ 291.672483][T12530] bcachefs (loop9): check_extents_to_backpointers... done [ 291.673990][T12530] bcachefs (loop9): check_alloc_to_lru_refs... done [ 291.675093][T12530] bcachefs (loop9): bucket_gens_init... done [ 291.683241][T12530] bcachefs (loop9): check_snapshot_trees... [ 291.684734][ T8958] bcachefs (loop7): shutdown complete [ 291.685612][T12534] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 291.685620][T12534] allowing incompatible features above 0.0: (unknown version) [ 291.685625][T12534] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 291.685634][T12534] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 291.685732][T12534] bcachefs (loop2): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 291.685738][T12534] invalid extent entry type (got 7, max 7), deleting [ 291.685762][T12534] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 291.685812][T12534] bcachefs (loop2): Version upgrade required: [ 291.685812][T12534] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 291.685812][T12534] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 291.685812][T12534] 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,check_rebalance_work,set_fs_needs_rebalance [ 291.686213][T12530] done [ 291.686219][T12530] bcachefs (loop9): check_snapshots... done [ 291.686501][T12530] bcachefs (loop9): check_subvols... done [ 291.686780][T12530] bcachefs (loop9): check_subvol_children... done [ 291.687623][T12530] bcachefs (loop9): delete_dead_snapshots... done [ 291.697707][T12530] bcachefs (loop9): check_inodes... done [ 291.708388][T12530] bcachefs (loop9): check_extents... done [ 291.709209][T12530] bcachefs (loop9): check_indirect_extents... [ 291.710133][T12526] bcachefs (loop8): Fixed errors, running fsck a second time to verify fs is clean [ 291.710142][T12526] bcachefs (loop8): check_alloc_info... [ 291.711963][T12530] done [ 291.711971][T12530] bcachefs (loop9): check_dirents... done [ 291.717610][T12530] bcachefs (loop9): check_xattrs... [ 291.720522][T12526] done [ 291.720540][T12526] bcachefs (loop8): check_lrus... [ 291.727643][T12534] bcachefs (loop2): accounting_read... [ 291.727851][T12530] done [ 291.727857][T12530] bcachefs (loop9): check_root... done [ 291.733911][T12530] bcachefs (loop9): check_unreachable_inodes... [ 291.734386][T12526] done [ 291.734394][T12526] bcachefs (loop8): check_btree_backpointers... [ 291.734794][T12530] done [ 291.734800][T12530] bcachefs (loop9): check_subvolume_structure... done [ 291.735080][T12530] bcachefs (loop9): check_directory_structure... [ 291.735442][T12526] done [ 291.735447][T12526] bcachefs (loop8): check_backpointers_to_extents... done [ 291.736149][T12526] bcachefs (loop8): check_extents_to_backpointers... [ 291.736377][T12526] bcachefs (loop8): scanning for missing backpointers in 1/128 buckets [ 291.736755][T12530] done [ 291.736769][T12530] bcachefs (loop9): check_nlinks... [ 291.737515][T12526] done [ 291.738410][T12530] done [ 291.738416][T12530] bcachefs (loop9): check_rebalance_work... [ 291.738660][T12526] bcachefs (loop8): check_alloc_to_lru_refs... [ 291.740311][T12530] done [ 291.740317][T12530] bcachefs (loop9): resume_logged_ops... [ 291.747706][T12526] done [ 291.747850][T12530] done [ 291.763186][T12526] bcachefs (loop8): bucket_gens_init... [ 291.763776][T12534] done [ 291.763811][T12534] bcachefs (loop2): alloc_read... [ 291.764149][T12530] bcachefs (loop9): delete_dead_inodes... done [ 291.764672][T12530] bcachefs (loop9): set_fs_needs_rebalance... done [ 291.766160][T12534] done [ 291.766175][T12534] bcachefs (loop2): snapshots_read... done [ 291.766790][T12534] bcachefs (loop2): check_allocations... [ 291.767120][T12534] bcachefs (loop2): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 291.767126][T12534] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 291.767277][T12534] bcachefs (loop2): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 291.767282][T12534] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 291.767926][T12530] bcachefs (loop9): done starting filesystem [ 291.768089][T12526] done [ 291.768592][T12526] bcachefs (loop8): check_snapshot_trees... done [ 291.768943][T12526] bcachefs (loop8): check_snapshots... [ 291.773103][T12534] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 291.773110][T12534] 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 [ 291.773437][T12526] done [ 291.773443][T12526] bcachefs (loop8): check_subvols... done [ 291.773761][T12526] bcachefs (loop8): check_subvol_children... [ 291.774154][T12534] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 291.774160][T12534] 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 [ 291.774265][T12534] bcachefs (loop2): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 291.774270][T12534] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 291.774717][T12526] done [ 291.774723][T12526] bcachefs (loop8): delete_dead_snapshots... done [ 291.774959][T12526] bcachefs (loop8): check_inodes... done [ 291.775297][T12526] bcachefs (loop8): check_extents... done [ 291.775904][T12526] bcachefs (loop8): check_indirect_extents... [ 291.776110][T12534] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 291.776116][T12534] 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 [ 291.776687][T12526] done [ 291.776700][T12526] bcachefs (loop8): check_dirents... [ 291.777183][T12534] bcachefs (loop2): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 291.777188][T12534] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 291.777299][T12534] bcachefs (loop2): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 291.777303][T12534] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 291.781674][T12526] done [ 291.781681][T12526] bcachefs (loop8): check_xattrs... [ 291.781962][T12534] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 291.781969][T12534] 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 [ 291.782114][T12534] bcachefs (loop2): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 291.782119][T12534] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 291.782234][T12534] bcachefs (loop2): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 291.782238][T12534] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 291.782242][T12534] Ratelimiting new instances of previous error [ 291.782358][T12534] bcachefs (loop2): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.782382][T12534] bcachefs (loop2): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.782517][T12534] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.782539][T12534] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.782633][T12534] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.782657][T12534] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.782699][T12534] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.782726][T12534] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.782767][T12534] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.783101][T12526] done [ 291.783107][T12526] bcachefs (loop8): check_root... done [ 291.783363][T12526] bcachefs (loop8): check_unreachable_inodes... [ 291.785352][T12534] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.785417][T12534] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.785441][T12534] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.785490][T12534] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.785514][T12534] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.785562][T12534] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.785591][T12534] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 291.785634][T12534] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 291.785655][T12534] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 291.785696][T12534] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 291.785718][T12534] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 291.785771][T12534] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 291.785775][T12534] Ratelimiting new instances of previous error [ 291.785801][T12534] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 291.785805][T12534] Ratelimiting new instances of previous error [ 291.788296][T12526] done [ 291.788301][T12526] bcachefs (loop8): check_subvolume_structure... done [ 291.796901][T12526] bcachefs (loop8): check_directory_structure... done [ 291.797164][T12526] bcachefs (loop8): check_nlinks... done [ 291.797511][T12526] bcachefs (loop8): check_rebalance_work... done [ 291.798338][T12526] bcachefs (loop8): resume_logged_ops... done [ 291.798597][T12526] bcachefs (loop8): delete_dead_inodes... done [ 291.799920][T12526] bcachefs (loop8): set_fs_needs_rebalance... done [ 291.801174][T12526] bcachefs (loop8): done starting filesystem [ 291.824492][T12534] done [ 291.826601][T12534] bcachefs (loop2): going read-write [ 291.873657][T12105] bcachefs (loop9): shutting down [ 291.873670][T12105] bcachefs (loop9): going read-only [ 291.873684][T12105] bcachefs (loop9): finished waiting for writes to stop [ 291.894645][T12534] bcachefs (loop2): journal_replay... [ 291.898052][T11536] bcachefs (loop8): shutting down [ 291.898115][T11536] bcachefs (loop8): going read-only [ 291.904544][T12105] bcachefs (loop9): flushing journal and stopping allocators, journal seq 33 [ 291.904643][T12105] bcachefs (loop9): flushing journal and stopping allocators complete, journal seq 33 [ 291.904893][T11536] bcachefs (loop8): finished waiting for writes to stop [ 291.905337][T12105] bcachefs (loop9): clean shutdown complete, journal seq 34 [ 291.905777][T12105] bcachefs (loop9): marking filesystem clean [ 291.909580][T12556] loop1: detected capacity change from 0 to 32768 [ 291.948408][T12105] bcachefs (loop9): shutdown complete [ 291.967213][T11536] bcachefs (loop8): flushing journal and stopping allocators, journal seq 34 [ 291.970230][T11536] bcachefs (loop8): flushing journal and stopping allocators complete, journal seq 35 [ 291.973876][T11536] bcachefs (loop8): clean shutdown complete, journal seq 36 [ 291.974247][T11536] bcachefs (loop8): marking filesystem clean [ 291.974823][T12534] done [ 291.975216][T12534] bcachefs (loop2): check_alloc_info... [ 291.975652][T12534] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 291.975658][T12534] device 0 buckets 26-27, fixing [ 291.987557][T12565] loop7: detected capacity change from 0 to 32768 [ 292.004438][T11536] bcachefs (loop8): shutdown complete [ 292.013094][T12534] done [ 292.018409][T12534] bcachefs (loop2): check_lrus... done [ 292.019204][T12534] bcachefs (loop2): check_btree_backpointers... done [ 292.026609][T12534] bcachefs (loop2): check_backpointers_to_extents... done [ 292.027941][T12534] bcachefs (loop2): check_extents_to_backpointers... [ 292.028167][T12534] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 292.028515][T12534] done [ 292.028782][T12534] bcachefs (loop2): check_alloc_to_lru_refs... done [ 292.031964][T12534] bcachefs (loop2): bucket_gens_init... [ 292.036552][T12556] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 292.036764][T12534] done [ 292.048129][T12556] allowing incompatible features above 0.0: (unknown version) [ 292.048180][T12556] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 292.048212][T12556] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 292.048371][T12556] bcachefs (loop1): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 292.048382][T12556] invalid extent entry type (got 7, max 7), deleting [ 292.048422][T12556] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 292.048484][T12556] bcachefs (loop1): Version upgrade required: [ 292.048484][T12556] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 292.048484][T12556] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 292.048484][T12556] 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,check_rebalance_work,set_fs_needs_rebalance [ 292.068876][T12534] bcachefs (loop2): check_snapshot_trees... done [ 292.069213][T12534] bcachefs (loop2): check_snapshots... [ 292.069889][T12534] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 292.069895][T12534] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 292.086346][T12534] done [ 292.086803][T12534] bcachefs (loop2): check_subvols... [ 292.087034][T12534] bcachefs (loop2): subvol root 4096:4294967295 has wrong bi_subvol field: got 0, should be 1, fixing [ 292.087411][T12534] done [ 292.087665][T12534] bcachefs (loop2): check_subvol_children... done [ 292.090520][T12534] bcachefs (loop2): delete_dead_snapshots... [ 292.091857][T12564] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 292.091865][T12564] running recovery pass check_extents_to_backpointers (17), currently at delete_dead_snapshots (26) [ 292.094511][T12534] done [ 292.094995][T12534] bcachefs (loop2): check_extents_to_backpointers... [ 292.095270][T12534] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [ 292.097052][T12534] done [ 292.097758][T12534] bcachefs (loop2): check_inodes... done [ 292.102738][T12534] bcachefs (loop2): check_extents... [ 292.110931][T12556] bcachefs (loop1): accounting_read... [ 292.111805][T12565] bcachefs (loop7): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 292.111824][T12565] allowing incompatible features above 0.0: (unknown version) [ 292.111844][T12565] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 292.111859][T12565] bcachefs (loop7): Using encoding defined by superblock: utf8-12.1.0 [ 292.111949][T12565] bcachefs (loop7): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 292.111959][T12565] invalid extent entry type (got 7, max 7), deleting [ 292.111988][T12565] bcachefs (loop7): recovering from clean shutdown, journal seq 10 [ 292.112042][T12565] bcachefs (loop7): Version upgrade required: [ 292.112042][T12565] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 292.112042][T12565] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 292.112042][T12565] 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,check_rebalance_work,set_fs_needs_rebalance [ 292.142088][T12534] done [ 292.142126][T12534] bcachefs (loop2): check_indirect_extents... done [ 292.148678][T12534] bcachefs (loop2): check_dirents... [ 292.149017][T12534] bcachefs (loop2): hash table key at wrong offset: should be at 331005371 [ 292.149028][T12534] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 292.149492][T12534] bcachefs (loop2): hash table key at wrong offset: should be at 15355471 [ 292.149502][T12534] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 292.149626][T12534] bcachefs (loop2): hash table key at wrong offset: should be at 4068592972 [ 292.149635][T12534] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 292.149727][T12534] bcachefs (loop2): hash table key at wrong offset: should be at 3788586680 [ 292.149735][T12534] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 292.149832][T12534] bcachefs (loop2): hash table key at wrong offset: should be at 117639183 [ 292.149840][T12534] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 292.149938][T12534] bcachefs (loop2): hash table key at wrong offset: should be at 3087481628 [ 292.149945][T12534] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 292.150051][T12534] bcachefs (loop2): check_dirents requires second pass [ 292.150183][T12534] bcachefs (loop2): inode 536870914:4294967295 has wrong backpointer: [ 292.150190][T12534] got 0:3087481628 [ 292.150196][T12534] should be 4096:3087481628, fixing [ 292.150290][T12534] bcachefs (loop2): directory with wrong i_nlink: got 0, should be 2 [ 292.150297][T12534] /, fixing [ 292.164052][T12534] done [ 292.165122][T12534] bcachefs (loop2): check_xattrs... done [ 292.168417][T12534] bcachefs (loop2): check_root... done [ 292.168816][T12534] bcachefs (loop2): check_unreachable_inodes... done [ 292.171138][T12534] bcachefs (loop2): check_subvolume_structure... done [ 292.171512][T12534] bcachefs (loop2): check_directory_structure... done [ 292.173694][T12534] bcachefs (loop2): check_nlinks... [ 292.173909][T12534] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 292.174969][T12534] done [ 292.175264][T12534] bcachefs (loop2): check_rebalance_work... [ 292.175761][T12565] bcachefs (loop7): accounting_read... [ 292.186425][T12534] done [ 292.186436][T12534] bcachefs (loop2): resume_logged_ops... done [ 292.189961][T12534] bcachefs (loop2): delete_dead_inodes... done [ 292.190287][T12534] bcachefs (loop2): set_fs_needs_rebalance... [ 292.196514][T12556] done [ 292.196543][T12556] bcachefs (loop1): alloc_read... [ 292.196996][T12534] done [ 292.204705][T12556] done [ 292.204742][T12556] bcachefs (loop1): snapshots_read... done [ 292.208440][T12556] bcachefs (loop1): check_allocations... [ 292.208810][T12556] bcachefs (loop1): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 292.208816][T12556] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 292.208976][T12556] bcachefs (loop1): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 292.208981][T12556] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 292.214702][T12565] done [ 292.214709][T12565] bcachefs (loop7): alloc_read... [ 292.216605][T12556] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 292.216613][T12556] 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 [ 292.217467][T12565] done [ 292.217473][T12565] bcachefs (loop7): snapshots_read... [ 292.218774][T12534] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 292.218784][T12534] bcachefs (loop2): check_alloc_info... [ 292.221255][T12565] done [ 292.221262][T12565] bcachefs (loop7): check_allocations... [ 292.221562][T12565] bcachefs (loop7): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 292.221568][T12565] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 292.221719][T12565] bcachefs (loop7): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 292.221723][T12565] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 292.222261][T12556] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 292.222267][T12556] 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 [ 292.222373][T12556] bcachefs (loop1): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 292.222378][T12556] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 292.225916][T12556] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 292.225923][T12556] 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 [ 292.226372][T12565] bcachefs (loop7): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 292.226378][T12565] 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 [ 292.226970][T12556] bcachefs (loop1): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 292.226975][T12556] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 292.227088][T12556] bcachefs (loop1): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 292.227093][T12556] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 292.227636][T12565] bcachefs (loop7): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 292.227641][T12565] 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 [ 292.227743][T12565] bcachefs (loop7): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 292.227747][T12565] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 292.228183][T12556] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 292.228188][T12556] 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 [ 292.228315][T12556] bcachefs (loop1): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 292.228319][T12556] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 292.228431][T12556] bcachefs (loop1): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 292.228435][T12556] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 292.228439][T12556] Ratelimiting new instances of previous error [ 292.228562][T12556] bcachefs (loop1): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.228595][T12556] bcachefs (loop1): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.228723][T12556] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.228745][T12556] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.228828][T12556] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.228853][T12556] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.228898][T12556] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.228923][T12556] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.228965][T12556] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.228988][T12556] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.229029][T12556] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.229051][T12556] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.229095][T12556] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.229116][T12556] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.229157][T12556] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.229180][T12556] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.229222][T12556] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.229245][T12556] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 292.230117][T12565] bcachefs (loop7): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 292.230123][T12565] 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 [ 292.231521][T12565] bcachefs (loop7): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 292.231526][T12565] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 292.231646][T12565] bcachefs (loop7): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 292.231650][T12565] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 292.232036][T12565] bcachefs (loop7): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 292.232041][T12565] 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 [ 292.232160][T12565] bcachefs (loop7): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 292.232164][T12565] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 292.232274][T12565] bcachefs (loop7): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 292.232278][T12565] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 292.232282][T12565] Ratelimiting new instances of previous error [ 292.232392][T12565] bcachefs (loop7): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.232416][T12565] bcachefs (loop7): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.232531][T12565] bcachefs (loop7): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.232559][T12565] bcachefs (loop7): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.232662][T12565] bcachefs (loop7): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.232685][T12565] bcachefs (loop7): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.232729][T12565] bcachefs (loop7): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.232751][T12565] bcachefs (loop7): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.232793][T12565] bcachefs (loop7): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.232816][T12565] bcachefs (loop7): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.232860][T12565] bcachefs (loop7): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.232885][T12565] bcachefs (loop7): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.232926][T12565] bcachefs (loop7): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.232949][T12565] bcachefs (loop7): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.232990][T12565] bcachefs (loop7): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.233013][T12565] bcachefs (loop7): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.233057][T12565] bcachefs (loop7): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.233077][T12565] bcachefs (loop7): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 292.233125][T12565] bcachefs (loop7): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.233146][T12565] bcachefs (loop7): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.233196][T12565] bcachefs (loop7): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.233200][T12565] Ratelimiting new instances of previous error [ 292.233226][T12565] bcachefs (loop7): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.233230][T12565] Ratelimiting new instances of previous error [ 292.234851][T12556] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.234880][T12556] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.234934][T12556] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.234939][T12556] Ratelimiting new instances of previous error [ 292.234970][T12556] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.234975][T12556] Ratelimiting new instances of previous error [ 292.259658][T12534] done [ 292.259669][T12534] bcachefs (loop2): check_lrus... done [ 292.283908][T12534] bcachefs (loop2): check_btree_backpointers... done [ 292.284348][T12534] bcachefs (loop2): check_backpointers_to_extents... done [ 292.286857][T12534] bcachefs (loop2): check_extents_to_backpointers... [ 292.287593][T12556] done [ 292.288193][T12556] bcachefs (loop1): going read-write [ 292.291135][T12534] done [ 292.291151][T12534] bcachefs (loop2): check_alloc_to_lru_refs... [ 292.292686][T12565] done [ 292.293230][T12534] done [ 292.293696][T12565] bcachefs (loop7): going read-write [ 292.294331][T12534] bcachefs (loop2): bucket_gens_init... done [ 292.296922][T12534] bcachefs (loop2): check_snapshot_trees... done [ 292.297275][T12534] bcachefs (loop2): check_snapshots... done [ 292.297729][T12534] bcachefs (loop2): check_subvols... done [ 292.297996][T12534] bcachefs (loop2): check_subvol_children... done [ 292.298220][T12534] bcachefs (loop2): delete_dead_snapshots... done [ 292.298443][T12534] bcachefs (loop2): check_inodes... done [ 292.299087][T12534] bcachefs (loop2): check_extents... done [ 292.302215][T12534] bcachefs (loop2): check_indirect_extents... done [ 292.302873][T12534] bcachefs (loop2): check_dirents... done [ 292.303866][T12534] bcachefs (loop2): check_xattrs... done [ 292.304931][T12534] bcachefs (loop2): check_root... done [ 292.305182][T12534] bcachefs (loop2): check_unreachable_inodes... done [ 292.305449][T12534] bcachefs (loop2): check_subvolume_structure... done [ 292.305701][T12534] bcachefs (loop2): check_directory_structure... done [ 292.305930][T12534] bcachefs (loop2): check_nlinks... done [ 292.306316][T12534] bcachefs (loop2): check_rebalance_work... done [ 292.306569][T12534] bcachefs (loop2): resume_logged_ops... done [ 292.306826][T12534] bcachefs (loop2): delete_dead_inodes... done [ 292.307058][T12534] bcachefs (loop2): set_fs_needs_rebalance... done [ 292.310171][T12534] bcachefs (loop2): done starting filesystem [ 292.313612][T12565] bcachefs (loop7): journal_replay... [ 292.318071][T12556] bcachefs (loop1): journal_replay... [ 292.360314][T12565] done [ 292.360699][T12565] bcachefs (loop7): check_alloc_info... [ 292.361113][T12565] bcachefs (loop7): hole in alloc btree missing in freespace btree [ 292.361118][T12565] device 0 buckets 26-27, fixing [ 292.362755][T12565] done [ 292.365139][T12556] done [ 292.365527][T12556] bcachefs (loop1): check_alloc_info... [ 292.365959][T12556] bcachefs (loop1): hole in alloc btree missing in freespace btree [ 292.365965][T12556] device 0 buckets 26-27, fixing [ 292.374283][T12565] bcachefs (loop7): check_lrus... done [ 292.381768][T12565] bcachefs (loop7): check_btree_backpointers... done [ 292.382149][T12565] bcachefs (loop7): check_backpointers_to_extents... done [ 292.384455][T12556] done [ 292.384766][T12565] bcachefs (loop7): check_extents_to_backpointers... [ 292.385118][T12565] bcachefs (loop7): scanning for missing backpointers in 5/128 buckets [ 292.385511][T12556] bcachefs (loop1): check_lrus... done [ 292.385960][T12556] bcachefs (loop1): check_btree_backpointers... done [ 292.386298][T12556] bcachefs (loop1): check_backpointers_to_extents... [ 292.408003][ T6702] bcachefs (loop2): shutting down [ 292.408021][ T6702] bcachefs (loop2): going read-only [ 292.408037][ T6702] bcachefs (loop2): finished waiting for writes to stop [ 292.408305][T12556] done [ 292.413948][T12565] done [ 292.414007][T12556] bcachefs (loop1): check_extents_to_backpointers... [ 292.414352][T12556] bcachefs (loop1): scanning for missing backpointers in 5/128 buckets [ 292.423091][T12556] done [ 292.423356][T12556] bcachefs (loop1): check_alloc_to_lru_refs... done [ 292.425740][T12556] bcachefs (loop1): bucket_gens_init... done [ 292.431908][T12556] bcachefs (loop1): check_snapshot_trees... [ 292.438737][ T6702] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 292.439653][ T6702] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 292.444773][T12556] done [ 292.444870][T12565] bcachefs (loop7): check_alloc_to_lru_refs... [ 292.445334][ T6702] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 292.445719][ T6702] bcachefs (loop2): marking filesystem clean [ 292.446109][T12565] done [ 292.449007][T12565] bcachefs (loop7): bucket_gens_init... done [ 292.464030][T12565] bcachefs (loop7): check_snapshot_trees... done [ 292.484313][ T6702] bcachefs (loop2): shutdown complete [ 292.484498][T12556] bcachefs (loop1): check_snapshots... [ 292.484684][T12556] bcachefs (loop1): snapshot points to missing/incorrect tree: [ 292.484691][T12556] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 292.486750][T12556] done [ 292.496897][T12556] bcachefs (loop1): check_subvols... [ 292.497118][T12556] bcachefs (loop1): subvol root 4096:4294967295 has wrong bi_subvol field: got 0, should be 1, fixing [ 292.497823][T12565] bcachefs (loop7): check_snapshots... [ 292.497953][T12565] bcachefs (loop7): snapshot points to missing/incorrect tree: [ 292.497959][T12565] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 292.506766][T12556] done [ 292.507925][T12556] bcachefs (loop1): check_subvol_children... [ 292.527779][T12565] done [ 292.528183][T12556] done [ 292.528192][T12556] bcachefs (loop1): delete_dead_snapshots... [ 292.529014][T12565] bcachefs (loop7): check_subvols... [ 292.529246][T12565] bcachefs (loop7): subvol root 4096:4294967295 has wrong bi_subvol field: got 0, should be 1, fixing [ 292.532039][T12556] done [ 292.535542][T12565] done [ 292.535647][T12585] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 292.535654][T12585] running recovery pass check_extents_to_backpointers (17), currently at delete_dead_snapshots (26) [ 292.536380][T12556] bcachefs (loop1): check_extents_to_backpointers... [ 292.536701][T12556] bcachefs (loop1): scanning for missing backpointers in 1/128 buckets [ 292.546930][T12565] bcachefs (loop7): check_subvol_children... [ 292.547685][T12556] done [ 292.548462][T12556] bcachefs (loop1): check_inodes... [ 292.548910][T12565] done [ 292.548916][T12565] bcachefs (loop7): delete_dead_snapshots... done [ 292.549235][T12565] bcachefs (loop7): check_inodes... done [ 292.557302][T12565] bcachefs (loop7): check_extents... [ 292.562499][T12556] done [ 292.562742][T12584] bcachefs (loop7): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 292.562749][T12584] running recovery pass check_extents_to_backpointers (17), currently at check_extents (29) [ 292.565155][T12556] bcachefs (loop1): check_extents... done [ 292.567254][T12556] bcachefs (loop1): check_indirect_extents... [ 292.568296][T12565] done [ 292.568633][T12556] done [ 292.568642][T12556] bcachefs (loop1): check_dirents... [ 292.568887][T12556] bcachefs (loop1): hash table key at wrong offset: should be at 331005371 [ 292.568893][T12556] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 292.569737][T12565] bcachefs (loop7): check_extents_to_backpointers... [ 292.570203][T12565] bcachefs (loop7): scanning for missing backpointers in 1/128 buckets [ 292.572408][T12556] bcachefs (loop1): hash table key at wrong offset: should be at 15355471 [ 292.572425][T12556] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 292.573166][T12556] bcachefs (loop1): hash table key at wrong offset: should be at 4068592972 [ 292.573171][T12556] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 292.573269][T12556] bcachefs (loop1): hash table key at wrong offset: should be at 3788586680 [ 292.573273][T12556] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 292.573377][T12556] bcachefs (loop1): hash table key at wrong offset: should be at 117639183 [ 292.573381][T12556] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 292.573480][T12556] bcachefs (loop1): hash table key at wrong offset: should be at 3087481628 [ 292.573484][T12556] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 292.573599][T12556] bcachefs (loop1): check_dirents requires second pass [ 292.573728][T12556] bcachefs (loop1): inode 536870914:4294967295 has wrong backpointer: [ 292.573733][T12556] got 0:3087481628 [ 292.573736][T12556] should be 4096:3087481628, fixing [ 292.573828][T12556] bcachefs (loop1): directory with wrong i_nlink: got 0, should be 2 [ 292.573832][T12556] /, fixing [ 292.574248][T12565] done [ 292.574497][T12565] bcachefs (loop7): check_indirect_extents... done [ 292.574777][T12565] bcachefs (loop7): check_dirents... [ 292.574983][T12565] bcachefs (loop7): hash table key at wrong offset: should be at 331005371 [ 292.574988][T12565] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 292.575351][T12565] bcachefs (loop7): hash table key at wrong offset: should be at 15355471 [ 292.575355][T12565] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 292.575464][T12565] bcachefs (loop7): hash table key at wrong offset: should be at 4068592972 [ 292.575468][T12565] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 292.575556][T12565] bcachefs (loop7): hash table key at wrong offset: should be at 3788586680 [ 292.575560][T12565] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 292.575652][T12565] bcachefs (loop7): hash table key at wrong offset: should be at 117639183 [ 292.575656][T12565] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 292.575750][T12565] bcachefs (loop7): hash table key at wrong offset: should be at 3087481628 [ 292.575754][T12565] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 292.575851][T12565] bcachefs (loop7): check_dirents requires second pass [ 292.575973][T12565] bcachefs (loop7): inode 536870914:4294967295 has wrong backpointer: [ 292.575977][T12565] got 0:3087481628 [ 292.575980][T12565] should be 4096:3087481628, fixing [ 292.578651][T12588] loop8: detected capacity change from 0 to 32768 [ 292.587291][T12565] bcachefs (loop7): directory with wrong i_nlink: got 0, should be 2 [ 292.587309][T12565] /, fixing [ 292.592043][T12565] done [ 292.592333][T12565] bcachefs (loop7): check_xattrs... done [ 292.592807][T12565] bcachefs (loop7): check_root... done [ 292.593099][T12565] bcachefs (loop7): check_unreachable_inodes... done [ 292.593383][T12565] bcachefs (loop7): check_subvolume_structure... done [ 292.593623][T12565] bcachefs (loop7): check_directory_structure... [ 292.593881][T12556] done [ 292.594310][T12556] bcachefs (loop1): check_xattrs... [ 292.594694][T12565] done [ 292.594711][T12565] bcachefs (loop7): check_nlinks... [ 292.594899][T12565] bcachefs (loop7): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 292.595395][T12556] done [ 292.595400][T12556] bcachefs (loop1): check_root... done [ 292.597922][T12556] bcachefs (loop1): check_unreachable_inodes... [ 292.598092][T12565] done [ 292.598461][T12565] bcachefs (loop7): check_rebalance_work... [ 292.598885][T12556] done [ 292.598891][T12556] bcachefs (loop1): check_subvolume_structure... [ 292.611447][T12581] loop9: detected capacity change from 0 to 32768 [ 292.612554][T12565] done [ 292.612571][T12565] bcachefs (loop7): resume_logged_ops... [ 292.612782][T12556] done [ 292.612795][T12556] bcachefs (loop1): check_directory_structure... done [ 292.615825][T12556] bcachefs (loop1): check_nlinks... [ 292.616033][T12556] bcachefs (loop1): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 292.616251][T12565] done [ 292.616264][T12565] bcachefs (loop7): delete_dead_inodes... [ 292.616690][T12556] done [ 292.616940][T12556] bcachefs (loop1): check_rebalance_work... done [ 292.617265][T12556] bcachefs (loop1): resume_logged_ops... done [ 292.617523][T12556] bcachefs (loop1): delete_dead_inodes... done [ 292.617851][T12556] bcachefs (loop1): set_fs_needs_rebalance... [ 292.625037][T12565] done [ 292.625049][T12565] bcachefs (loop7): set_fs_needs_rebalance... done [ 292.634923][T12556] done [ 292.672451][T12565] bcachefs (loop7): Fixed errors, running fsck a second time to verify fs is clean [ 292.672487][T12565] bcachefs (loop7): check_alloc_info... [ 292.677315][T12556] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 292.679644][T12556] bcachefs (loop1): check_alloc_info... done [ 292.685094][T12556] bcachefs (loop1): check_lrus... [ 292.694676][T12565] done [ 292.694717][T12565] bcachefs (loop7): check_lrus... [ 292.695079][T12556] done [ 292.695085][T12556] bcachefs (loop1): check_btree_backpointers... [ 292.695590][T12565] done [ 292.695597][T12565] bcachefs (loop7): check_btree_backpointers... [ 292.696247][T12556] done [ 292.696252][T12556] bcachefs (loop1): check_backpointers_to_extents... [ 292.696736][T12565] done [ 292.696741][T12565] bcachefs (loop7): check_backpointers_to_extents... [ 292.697337][T12556] done [ 292.697342][T12556] bcachefs (loop1): check_extents_to_backpointers... [ 292.697844][T12565] done [ 292.697849][T12565] bcachefs (loop7): check_extents_to_backpointers... done [ 292.698412][T12565] bcachefs (loop7): check_alloc_to_lru_refs... [ 292.698961][T12556] done [ 292.698969][T12556] bcachefs (loop1): check_alloc_to_lru_refs... done [ 292.701297][T12556] bcachefs (loop1): bucket_gens_init... done [ 292.701979][T12556] bcachefs (loop1): check_snapshot_trees... done [ 292.702449][T12556] bcachefs (loop1): check_snapshots... done [ 292.702723][T12556] bcachefs (loop1): check_subvols... done [ 292.702967][T12556] bcachefs (loop1): check_subvol_children... done [ 292.703180][T12556] bcachefs (loop1): delete_dead_snapshots... done [ 292.703387][T12556] bcachefs (loop1): check_inodes... done [ 292.703727][T12556] bcachefs (loop1): check_extents... done [ 292.704098][T12556] bcachefs (loop1): check_indirect_extents... done [ 292.704338][T12556] bcachefs (loop1): check_dirents... done [ 292.704767][T12556] bcachefs (loop1): check_xattrs... done [ 292.705019][T12556] bcachefs (loop1): check_root... done [ 292.705251][T12556] bcachefs (loop1): check_unreachable_inodes... done [ 292.705492][T12556] bcachefs (loop1): check_subvolume_structure... done [ 292.705721][T12556] bcachefs (loop1): check_directory_structure... done [ 292.705938][T12556] bcachefs (loop1): check_nlinks... done [ 292.706429][T12556] bcachefs (loop1): check_rebalance_work... done [ 292.706681][T12556] bcachefs (loop1): resume_logged_ops... done [ 292.706898][T12556] bcachefs (loop1): delete_dead_inodes... done [ 292.707111][T12556] bcachefs (loop1): set_fs_needs_rebalance... done [ 292.708661][T12556] bcachefs (loop1): done starting filesystem [ 292.730169][T12565] done [ 292.734745][ T6697] bcachefs (loop1): shutting down [ 292.734769][ T6697] bcachefs (loop1): going read-only [ 292.734792][ T6697] bcachefs (loop1): finished waiting for writes to stop [ 292.738678][T12565] bcachefs (loop7): bucket_gens_init... done [ 292.742994][T12565] bcachefs (loop7): check_snapshot_trees... done [ 292.744305][T12565] bcachefs (loop7): check_snapshots... done [ 292.745567][T12565] bcachefs (loop7): check_subvols... [ 292.746624][T12588] bcachefs (loop8): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 292.746632][T12588] allowing incompatible features above 0.0: (unknown version) [ 292.746637][T12588] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 292.746647][T12588] bcachefs (loop8): Using encoding defined by superblock: utf8-12.1.0 [ 292.746727][T12588] bcachefs (loop8): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 292.746733][T12588] invalid extent entry type (got 7, max 7), deleting [ 292.746759][T12588] bcachefs (loop8): recovering from clean shutdown, journal seq 10 [ 292.746810][T12588] bcachefs (loop8): Version upgrade required: [ 292.746810][T12588] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 292.746810][T12588] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 292.746810][T12588] 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,check_rebalance_work,set_fs_needs_rebalance [ 292.758915][ T6697] bcachefs (loop1): flushing journal and stopping allocators, journal seq 33 [ 292.780276][T12565] done [ 292.780299][T12565] bcachefs (loop7): check_subvol_children... done [ 292.781657][T12565] bcachefs (loop7): delete_dead_snapshots... [ 292.784055][ T6697] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 34 [ 292.785073][T12565] done [ 292.785081][T12565] bcachefs (loop7): check_inodes... [ 292.786661][ T6697] bcachefs (loop1): clean shutdown complete, journal seq 35 [ 292.787057][ T6697] bcachefs (loop1): marking filesystem clean [ 292.789159][T12581] bcachefs (loop9): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 292.789167][T12581] allowing incompatible features above 0.0: (unknown version) [ 292.789172][T12581] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 292.789182][T12581] bcachefs (loop9): Using encoding defined by superblock: utf8-12.1.0 [ 292.792563][T12565] done [ 292.792572][T12565] bcachefs (loop7): check_extents... [ 292.793045][T12581] bcachefs (loop9): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 292.793068][T12581] invalid extent entry type (got 7, max 7), deleting [ 292.793116][T12581] bcachefs (loop9): recovering from clean shutdown, journal seq 10 [ 292.793178][T12581] bcachefs (loop9): Version upgrade required: [ 292.793178][T12581] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 292.793178][T12581] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 292.793178][T12581] 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,check_rebalance_work,set_fs_needs_rebalance [ 292.793604][T12565] done [ 292.793612][T12565] bcachefs (loop7): check_indirect_extents... done [ 292.805908][T12565] bcachefs (loop7): check_dirents... done [ 292.815466][T12565] bcachefs (loop7): check_xattrs... [ 292.821020][ T6697] bcachefs (loop1): shutdown complete [ 292.823153][T12565] done [ 292.823176][T12565] bcachefs (loop7): check_root... [ 292.826819][T12588] bcachefs (loop8): accounting_read... [ 292.828039][T12565] done [ 292.828057][T12565] bcachefs (loop7): check_unreachable_inodes... done [ 292.828761][T12565] bcachefs (loop7): check_subvolume_structure... done [ 292.829038][T12565] bcachefs (loop7): check_directory_structure... done [ 292.829352][T12565] bcachefs (loop7): check_nlinks... done [ 292.830535][T12565] bcachefs (loop7): check_rebalance_work... done [ 292.831254][T12565] bcachefs (loop7): resume_logged_ops... done [ 292.831956][T12565] bcachefs (loop7): delete_dead_inodes... done [ 292.832227][T12565] bcachefs (loop7): set_fs_needs_rebalance... [ 292.846804][T12581] bcachefs (loop9): accounting_read... [ 292.847165][T12565] done [ 292.859482][T12565] bcachefs (loop7): done starting filesystem [ 292.869463][T12581] done [ 292.869664][T12581] bcachefs (loop9): alloc_read... [ 292.871118][ T8958] bcachefs (loop7): shutting down [ 292.871145][ T8958] bcachefs (loop7): going read-only [ 292.871161][ T8958] bcachefs (loop7): finished waiting for writes to stop [ 292.871423][T12588] done [ 292.871429][T12588] bcachefs (loop8): alloc_read... done [ 292.871812][T12588] bcachefs (loop8): snapshots_read... done [ 292.872069][T12588] bcachefs (loop8): check_allocations... [ 292.872390][T12588] bcachefs (loop8): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 292.872396][T12588] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 292.872553][T12588] bcachefs (loop8): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 292.872558][T12588] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 292.873200][T12581] done [ 292.873206][T12581] bcachefs (loop9): snapshots_read... [ 292.873507][T12588] bcachefs (loop8): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 292.873513][T12588] 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 [ 292.873928][T12581] done [ 292.873934][T12581] bcachefs (loop9): check_allocations... [ 292.874224][T12581] bcachefs (loop9): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 292.874229][T12581] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 292.874373][T12581] bcachefs (loop9): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 292.874377][T12581] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 292.874868][T12588] bcachefs (loop8): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 292.874874][T12588] 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 [ 292.875001][T12588] bcachefs (loop8): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 292.875006][T12588] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 292.877607][T12588] bcachefs (loop8): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 292.877613][T12588] 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 [ 292.878017][T12588] bcachefs (loop8): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 292.878023][T12588] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 292.878119][T12588] bcachefs (loop8): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 292.878123][T12588] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 292.878478][T12588] bcachefs (loop8): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 292.878483][T12588] 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 [ 292.878616][T12588] bcachefs (loop8): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 292.878620][T12588] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 292.878735][T12588] bcachefs (loop8): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 292.878739][T12588] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 292.878744][T12588] Ratelimiting new instances of previous error [ 292.878854][T12588] bcachefs (loop8): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.878880][T12588] bcachefs (loop8): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.879018][T12588] bcachefs (loop8): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.879042][T12588] bcachefs (loop8): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.879225][T12588] bcachefs (loop8): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.879247][T12588] bcachefs (loop8): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.879756][T12588] bcachefs (loop8): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.879781][T12588] bcachefs (loop8): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.879829][T12588] bcachefs (loop8): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.879856][T12588] bcachefs (loop8): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.879906][T12588] bcachefs (loop8): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.879932][T12588] bcachefs (loop8): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.879978][T12588] bcachefs (loop8): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.880001][T12588] bcachefs (loop8): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.880043][T12588] bcachefs (loop8): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.880064][T12588] bcachefs (loop8): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.880109][T12588] bcachefs (loop8): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.880134][T12588] bcachefs (loop8): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 292.880177][T12588] bcachefs (loop8): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.880198][T12588] bcachefs (loop8): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.880248][T12588] bcachefs (loop8): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.880252][T12588] Ratelimiting new instances of previous error [ 292.880280][T12588] bcachefs (loop8): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.880284][T12588] Ratelimiting new instances of previous error [ 292.890267][T12581] bcachefs (loop9): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 292.890274][T12581] 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 [ 292.895871][T12581] bcachefs (loop9): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 292.895878][T12581] 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 [ 292.895993][T12581] bcachefs (loop9): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 292.895998][T12581] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 292.897285][T12581] bcachefs (loop9): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 292.897290][T12581] 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 [ 292.898070][T12581] bcachefs (loop9): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 292.898076][T12581] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 292.898187][T12581] bcachefs (loop9): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 292.898192][T12581] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 292.898762][T12581] bcachefs (loop9): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 292.898768][T12581] 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 [ 292.898903][T12581] bcachefs (loop9): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 292.898907][T12581] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 292.899025][T12581] bcachefs (loop9): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 292.899030][T12581] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 292.899034][T12581] Ratelimiting new instances of previous error [ 292.899146][T12581] bcachefs (loop9): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899171][T12581] bcachefs (loop9): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899436][T12581] bcachefs (loop9): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899469][T12581] bcachefs (loop9): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899569][T12581] bcachefs (loop9): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899604][T12581] bcachefs (loop9): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899650][T12581] bcachefs (loop9): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899676][T12581] bcachefs (loop9): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899723][T12581] bcachefs (loop9): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899746][T12581] bcachefs (loop9): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899793][T12581] bcachefs (loop9): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899814][T12581] bcachefs (loop9): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899855][T12581] bcachefs (loop9): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899877][T12581] bcachefs (loop9): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899924][T12581] bcachefs (loop9): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.899947][T12581] bcachefs (loop9): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 292.899986][T12581] bcachefs (loop9): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 292.900007][T12581] bcachefs (loop9): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 292.900046][T12581] bcachefs (loop9): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.900069][T12581] bcachefs (loop9): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.900118][T12581] bcachefs (loop9): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 292.900122][T12581] Ratelimiting new instances of previous error [ 292.900148][T12581] bcachefs (loop9): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 292.900152][T12581] Ratelimiting new instances of previous error [ 292.909889][T12588] done [ 292.912820][T12588] bcachefs (loop8): going read-write [ 292.918742][T12581] done [ 292.919219][T12588] bcachefs (loop8): journal_replay... [ 292.947525][T12581] bcachefs (loop9): going read-write [ 292.962645][ T8958] bcachefs (loop7): flushing journal and stopping allocators, journal seq 33 [ 292.962878][ T8958] bcachefs (loop7): flushing journal and stopping allocators complete, journal seq 33 [ 292.969847][T12581] bcachefs (loop9): journal_replay... [ 292.990240][ T8958] bcachefs (loop7): clean shutdown complete, journal seq 34 [ 292.990643][ T8958] bcachefs (loop7): marking filesystem clean [ 293.030053][T12588] done [ 293.030497][T12588] bcachefs (loop8): check_alloc_info... [ 293.030930][T12588] bcachefs (loop8): hole in alloc btree missing in freespace btree [ 293.030937][T12588] device 0 buckets 26-27, fixing [ 293.031906][T12581] done [ 293.034622][T12581] bcachefs (loop9): check_alloc_info... [ 293.035098][T12581] bcachefs (loop9): hole in alloc btree missing in freespace btree [ 293.035104][T12581] device 0 buckets 26-27, fixing [ 293.044062][T12588] done [ 293.044704][T12588] bcachefs (loop8): check_lrus... [ 293.045019][T12581] done [ 293.045710][T12581] bcachefs (loop9): check_lrus... [ 293.046057][T12588] done [ 293.046063][T12588] bcachefs (loop8): check_btree_backpointers... [ 293.046784][T12581] done [ 293.046790][T12581] bcachefs (loop9): check_btree_backpointers... [ 293.047100][T12588] done [ 293.047107][T12588] bcachefs (loop8): check_backpointers_to_extents... done [ 293.047987][T12588] bcachefs (loop8): check_extents_to_backpointers... [ 293.048257][T12588] bcachefs (loop8): scanning for missing backpointers in 5/128 buckets [ 293.054668][T12581] done [ 293.054681][T12581] bcachefs (loop9): check_backpointers_to_extents... [ 293.056799][T12588] done [ 293.057191][T12588] bcachefs (loop8): check_alloc_to_lru_refs... [ 293.057895][T12581] done [ 293.059216][ T8958] bcachefs (loop7): shutdown complete [ 293.085671][T12581] bcachefs (loop9): check_extents_to_backpointers... [ 293.086047][T12581] bcachefs (loop9): scanning for missing backpointers in 5/128 buckets [ 293.086462][T12588] done [ 293.090216][T12588] bcachefs (loop8): bucket_gens_init... [ 293.094138][T12581] done [ 293.095647][T12581] bcachefs (loop9): check_alloc_to_lru_refs... done [ 293.096475][T12581] bcachefs (loop9): bucket_gens_init... done [ 293.099212][T12588] done [ 293.099996][T12588] bcachefs (loop8): check_snapshot_trees... [ 293.100692][T12581] bcachefs (loop9): check_snapshot_trees... [ 293.101048][T12588] done [ 293.121590][T12581] done [ 293.122159][T12581] bcachefs (loop9): check_snapshots... [ 293.122358][T12581] bcachefs (loop9): snapshot points to missing/incorrect tree: [ 293.122375][T12581] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 293.123935][T12588] bcachefs (loop8): check_snapshots... [ 293.124105][T12588] bcachefs (loop8): snapshot points to missing/incorrect tree: [ 293.124110][T12588] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 293.143160][T12588] done [ 293.143271][T12581] done [ 293.143719][T12588] bcachefs (loop8): check_subvols... [ 293.143957][T12588] bcachefs (loop8): subvol root 4096:4294967295 has wrong bi_subvol field: got 0, should be 1, fixing [ 293.144212][T12581] bcachefs (loop9): check_subvols... [ 293.144391][T12581] bcachefs (loop9): subvol root 4096:4294967295 has wrong bi_subvol field: got 0, should be 1, fixing [ 293.144812][T12588] done [ 293.145032][T12588] bcachefs (loop8): check_subvol_children... done [ 293.145301][T12588] bcachefs (loop8): delete_dead_snapshots... [ 293.145819][T12581] done [ 293.147331][T12581] bcachefs (loop9): check_subvol_children... [ 293.147983][T12588] done [ 293.147990][T12588] bcachefs (loop8): check_inodes... [ 293.150660][T12606] bcachefs (loop8): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 293.150668][T12606] running recovery pass check_extents_to_backpointers (17), currently at check_inodes (28) [ 293.153855][T12581] done [ 293.154297][T12609] bcachefs (loop9): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 293.154303][T12609] running recovery pass check_extents_to_backpointers (17), currently at check_subvol_children (25) [ 293.156302][T12581] bcachefs (loop9): check_extents_to_backpointers... [ 293.156578][T12581] bcachefs (loop9): scanning for missing backpointers in 2/128 buckets [ 293.157269][T12588] done [ 293.157723][T12588] bcachefs (loop8): check_extents_to_backpointers... [ 293.157983][T12588] bcachefs (loop8): scanning for missing backpointers in 3/128 buckets [ 293.174223][T12581] done [ 293.174837][T12581] bcachefs (loop9): delete_dead_snapshots... done [ 293.175421][T12581] bcachefs (loop9): check_inodes... [ 293.176078][T12588] done [ 293.183538][T12588] bcachefs (loop8): check_extents... done [ 293.184693][T12588] bcachefs (loop8): check_indirect_extents... [ 293.185017][T12581] done [ 293.192070][T12588] done [ 293.192102][T12588] bcachefs (loop8): check_dirents... [ 293.192360][T12588] bcachefs (loop8): hash table key at wrong offset: should be at 331005371 [ 293.192366][T12588] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 293.192766][T12588] bcachefs (loop8): hash table key at wrong offset: should be at 15355471 [ 293.192771][T12588] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 293.192877][T12588] bcachefs (loop8): hash table key at wrong offset: should be at 4068592972 [ 293.192882][T12588] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 293.192972][T12588] bcachefs (loop8): hash table key at wrong offset: should be at 3788586680 [ 293.192976][T12588] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 293.193069][T12588] bcachefs (loop8): hash table key at wrong offset: should be at 117639183 [ 293.193074][T12588] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 293.193166][T12588] bcachefs (loop8): hash table key at wrong offset: should be at 3087481628 [ 293.193170][T12588] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 293.193268][T12588] bcachefs (loop8): check_dirents requires second pass [ 293.193397][T12588] bcachefs (loop8): inode 536870914:4294967295 has wrong backpointer: [ 293.193401][T12588] got 0:3087481628 [ 293.193404][T12588] should be 4096:3087481628, fixing [ 293.193634][T12581] bcachefs (loop9): check_extents... done [ 293.194721][T12581] bcachefs (loop9): check_indirect_extents... done [ 293.194989][T12581] bcachefs (loop9): check_dirents... [ 293.195212][T12581] bcachefs (loop9): hash table key at wrong offset: should be at 331005371 [ 293.195217][T12581] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing [ 293.195595][T12581] bcachefs (loop9): hash table key at wrong offset: should be at 15355471 [ 293.195600][T12581] u64s 7 type dirent 4096:1896155912177158345:U32_MAX len 0 ver 0: file3 -> 536870913 type reg, fixing [ 293.195711][T12581] bcachefs (loop9): hash table key at wrong offset: should be at 4068592972 [ 293.195715][T12581] u64s 7 type dirent 4096:2695648408715017799:U32_MAX len 0 ver 0: file2 -> 536870913 type reg, fixing [ 293.195801][T12581] bcachefs (loop9): hash table key at wrong offset: should be at 3788586680 [ 293.195805][T12581] u64s 7 type dirent 4096:4330382808765833931:U32_MAX len 0 ver 0: file1 -> 536870912 type reg, fixing [ 293.195902][T12581] bcachefs (loop9): hash table key at wrong offset: should be at 117639183 [ 293.195906][T12581] u64s 8 type dirent 4096:8130059955150870709:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing [ 293.196009][T12581] bcachefs (loop9): hash table key at wrong offset: should be at 3087481628 [ 293.196013][T12581] u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: file.cold -> 536870914 type reg, fixing [ 293.196111][T12581] bcachefs (loop9): check_dirents requires second pass [ 293.196233][T12581] bcachefs (loop9): inode 536870914:4294967295 has wrong backpointer: [ 293.196238][T12581] got 0:3087481628 [ 293.196241][T12581] should be 4096:3087481628, fixing [ 293.196328][T12581] bcachefs (loop9): directory with wrong i_nlink: got 0, should be 2 [ 293.196332][T12581] /, fixing [ 293.196636][T12588] bcachefs (loop8): directory with wrong i_nlink: got 0, should be 2 [ 293.196649][T12588] /, fixing [ 293.209581][T12588] done [ 293.210998][T12581] done [ 293.211169][T12588] bcachefs (loop8): check_xattrs... [ 293.213161][T12581] bcachefs (loop9): check_xattrs... [ 293.213926][T12588] done [ 293.213938][T12588] bcachefs (loop8): check_root... [ 293.214322][T12581] done [ 293.214327][T12581] bcachefs (loop9): check_root... [ 293.215020][T12588] done [ 293.215026][T12588] bcachefs (loop8): check_unreachable_inodes... [ 293.215423][T12581] done [ 293.215428][T12581] bcachefs (loop9): check_unreachable_inodes... [ 293.215816][T12588] done [ 293.215821][T12588] bcachefs (loop8): check_subvolume_structure... done [ 293.216282][T12588] bcachefs (loop8): check_directory_structure... [ 293.216478][T12581] done [ 293.216485][T12581] bcachefs (loop9): check_subvolume_structure... [ 293.216978][T12588] done [ 293.216983][T12588] bcachefs (loop8): check_nlinks... [ 293.217159][T12588] bcachefs (loop8): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 293.217609][T12581] done [ 293.217622][T12581] bcachefs (loop9): check_directory_structure... done [ 293.218442][T12581] bcachefs (loop9): check_nlinks... [ 293.218630][T12581] bcachefs (loop9): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 293.218980][T12588] done [ 293.226322][T12588] bcachefs (loop8): check_rebalance_work... done [ 293.229455][T12588] bcachefs (loop8): resume_logged_ops... [ 293.243762][T12581] done [ 293.258759][T12588] done [ 293.264065][T12581] bcachefs (loop9): check_rebalance_work... [ 293.264393][T12588] bcachefs (loop8): delete_dead_inodes... done [ 293.265152][T12588] bcachefs (loop8): set_fs_needs_rebalance... [ 293.270480][T12581] done [ 293.270488][T12581] bcachefs (loop9): resume_logged_ops... done [ 293.275506][T12581] bcachefs (loop9): delete_dead_inodes... [ 293.276569][T12588] done [ 293.277150][T12581] done [ 293.277160][T12581] bcachefs (loop9): set_fs_needs_rebalance... done [ 293.325440][T12604] loop1: detected capacity change from 0 to 32768 [ 293.332233][T12603] loop2: detected capacity change from 0 to 32768 [ 293.335468][T12588] bcachefs (loop8): Fixed errors, running fsck a second time to verify fs is clean [ 293.335490][T12588] bcachefs (loop8): check_alloc_info... [ 293.348081][T12581] bcachefs (loop9): Fixed errors, running fsck a second time to verify fs is clean [ 293.348108][T12581] bcachefs (loop9): check_alloc_info... [ 293.352737][T12588] done [ 293.352757][T12588] bcachefs (loop8): check_lrus... done [ 293.354588][T12588] bcachefs (loop8): check_btree_backpointers... done [ 293.355993][T12588] bcachefs (loop8): check_backpointers_to_extents... [ 293.356451][T12581] done [ 293.356466][T12581] bcachefs (loop9): check_lrus... done [ 293.356841][T12581] bcachefs (loop9): check_btree_backpointers... [ 293.357362][T12588] done [ 293.357387][T12588] bcachefs (loop8): check_extents_to_backpointers... [ 293.358060][T12581] done [ 293.358067][T12581] bcachefs (loop9): check_backpointers_to_extents... [ 293.361499][T12588] done [ 293.361513][T12588] bcachefs (loop8): check_alloc_to_lru_refs... [ 293.363291][T12581] done [ 293.363297][T12581] bcachefs (loop9): check_extents_to_backpointers... done [ 293.363789][T12581] bcachefs (loop9): check_alloc_to_lru_refs... [ 293.364391][T12588] done [ 293.364654][T12588] bcachefs (loop8): bucket_gens_init... [ 293.365182][T12581] done [ 293.365423][T12581] bcachefs (loop9): bucket_gens_init... done [ 293.368752][T12581] bcachefs (loop9): check_snapshot_trees... [ 293.369075][T12588] done [ 293.373252][T12588] bcachefs (loop8): check_snapshot_trees... [ 293.373776][T12581] done [ 293.373813][T12581] bcachefs (loop9): check_snapshots... [ 293.374808][T12588] done [ 293.374822][T12588] bcachefs (loop8): check_snapshots... [ 293.375142][T12581] done [ 293.375148][T12581] bcachefs (loop9): check_subvols... [ 293.375488][T12588] done [ 293.375496][T12588] bcachefs (loop8): check_subvols... [ 293.375809][T12581] done [ 293.375815][T12581] bcachefs (loop9): check_subvol_children... done [ 293.376415][T12581] bcachefs (loop9): delete_dead_snapshots... [ 293.376558][T12588] done [ 293.376564][T12588] bcachefs (loop8): check_subvol_children... [ 293.377132][T12581] done [ 293.377138][T12581] bcachefs (loop9): check_inodes... [ 293.377588][T12588] done [ 293.377595][T12588] bcachefs (loop8): delete_dead_snapshots... done [ 293.377854][T12588] bcachefs (loop8): check_inodes... [ 293.378395][T12581] done [ 293.378401][T12581] bcachefs (loop9): check_extents... [ 293.380713][T12588] done [ 293.380721][T12588] bcachefs (loop8): check_extents... [ 293.381520][T12581] done [ 293.381526][T12581] bcachefs (loop9): check_indirect_extents... [ 293.384959][T12588] done [ 293.384964][T12588] bcachefs (loop8): check_indirect_extents... done [ 293.385511][T12588] bcachefs (loop8): check_dirents... [ 293.385886][T12581] done [ 293.385903][T12581] bcachefs (loop9): check_dirents... [ 293.386612][T12588] done [ 293.386619][T12588] bcachefs (loop8): check_xattrs... [ 293.386798][T12581] done [ 293.386811][T12581] bcachefs (loop9): check_xattrs... [ 293.387193][T12588] done [ 293.387198][T12588] bcachefs (loop8): check_root... [ 293.387473][T12581] done [ 293.387478][T12581] bcachefs (loop9): check_root... done [ 293.387849][T12581] bcachefs (loop9): check_unreachable_inodes... [ 293.388407][T12588] done [ 293.388422][T12588] bcachefs (loop8): check_unreachable_inodes... done [ 293.388770][T12588] bcachefs (loop8): check_subvolume_structure... [ 293.389014][T12581] done [ 293.389021][T12581] bcachefs (loop9): check_subvolume_structure... [ 293.394240][T12588] done [ 293.394257][T12588] bcachefs (loop8): check_directory_structure... done [ 293.398880][T12588] bcachefs (loop8): check_nlinks... done [ 293.399902][T12588] bcachefs (loop8): check_rebalance_work... [ 293.400680][T12581] done [ 293.400686][T12581] bcachefs (loop9): check_directory_structure... [ 293.405283][T12588] done [ 293.405297][T12588] bcachefs (loop8): resume_logged_ops... [ 293.405525][T12581] done [ 293.405542][T12581] bcachefs (loop9): check_nlinks... [ 293.407492][T12588] done [ 293.407503][T12588] bcachefs (loop8): delete_dead_inodes... [ 293.407680][T12581] done [ 293.407693][T12581] bcachefs (loop9): check_rebalance_work... [ 293.408243][T12588] done [ 293.408248][T12588] bcachefs (loop8): set_fs_needs_rebalance... [ 293.408644][T12581] done [ 293.408650][T12581] bcachefs (loop9): resume_logged_ops... [ 293.413312][T12588] done [ 293.413471][T12581] done [ 293.413478][T12581] bcachefs (loop9): delete_dead_inodes... done [ 293.413797][T12581] bcachefs (loop9): set_fs_needs_rebalance... done [ 293.420471][T12581] bcachefs (loop9): done starting filesystem [ 293.423900][T12588] bcachefs (loop8): done starting filesystem [ 293.434361][T12105] bcachefs (loop9): shutting down [ 293.434389][T12105] bcachefs (loop9): going read-only [ 293.434407][T12105] bcachefs (loop9): finished waiting for writes to stop [ 293.437471][T11536] bcachefs (loop8): shutting down [ 293.437497][T11536] bcachefs (loop8): going read-only [ 293.437518][T11536] bcachefs (loop8): finished waiting for writes to stop [ 293.444061][T12604] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 293.446674][T12604] allowing incompatible features above 0.0: (unknown version) [ 293.448208][T12604] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 293.451089][T12604] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 293.452953][T12604] bcachefs (loop1): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 293.452975][T12604] invalid extent entry type (got 7, max 7), deleting [ 293.453014][T12604] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 293.453068][T12604] bcachefs (loop1): Version upgrade required: [ 293.453068][T12604] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 293.453068][T12604] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 293.453068][T12604] 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,check_rebalance_work,set_fs_needs_rebalance [ 293.465244][T12604] bcachefs (loop1): accounting_read... done [ 293.490251][T12604] bcachefs (loop1): alloc_read... [ 293.490512][T12105] bcachefs (loop9): flushing journal and stopping allocators, journal seq 33 [ 293.490958][T11536] bcachefs (loop8): flushing journal and stopping allocators, journal seq 34 [ 293.494809][T11536] bcachefs (loop8): flushing journal and stopping allocators complete, journal seq 34 [ 293.502047][T12604] done [ 293.502067][T12604] bcachefs (loop1): snapshots_read... [ 293.503279][T12105] bcachefs (loop9): flushing journal and stopping allocators complete, journal seq 34 [ 293.505753][T12604] done [ 293.505767][T12604] bcachefs (loop1): check_allocations... [ 293.506104][T12604] bcachefs (loop1): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 293.506110][T12604] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 293.506262][T12604] bcachefs (loop1): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 293.506266][T12604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 293.517248][T12105] bcachefs (loop9): clean shutdown complete, journal seq 35 [ 293.517634][T12105] bcachefs (loop9): marking filesystem clean [ 293.519880][T11536] bcachefs (loop8): clean shutdown complete, journal seq 35 [ 293.520266][T11536] bcachefs (loop8): marking filesystem clean [ 293.521499][T12604] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 293.521506][T12604] 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 [ 293.522284][T12604] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 293.522290][T12604] 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 [ 293.522399][T12604] bcachefs (loop1): bucket 0:31 data type btree ptr gen 0 missing in alloc btree [ 293.522404][T12604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 293.523480][T12604] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 293.523487][T12604] 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 [ 293.524300][T12604] bcachefs (loop1): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 293.524305][T12604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 293.524421][T12604] bcachefs (loop1): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 293.524426][T12604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 293.524802][T12604] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 293.524807][T12604] 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 [ 293.524928][T12604] bcachefs (loop1): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 293.524933][T12604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 293.525040][T12604] bcachefs (loop1): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 293.525044][T12604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 293.525049][T12604] Ratelimiting new instances of previous error [ 293.525178][T12604] bcachefs (loop1): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525205][T12604] bcachefs (loop1): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525345][T12604] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525368][T12604] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525458][T12604] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525480][T12604] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525526][T12604] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525558][T12604] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525610][T12604] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525633][T12604] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525680][T12604] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525704][T12604] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525752][T12604] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525774][T12604] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525819][T12604] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525840][T12604] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 293.525891][T12604] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 293.525914][T12604] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 293.525957][T12604] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 293.525980][T12604] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 293.526032][T12604] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 293.526036][T12604] Ratelimiting new instances of previous error [ 293.526061][T12604] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 293.526065][T12604] Ratelimiting new instances of previous error [ 293.532137][T12604] done [ 293.533195][T12604] bcachefs (loop1): going read-write [ 293.533521][T12611] loop7: detected capacity change from 0 to 32768 [ 293.542991][T12603] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 293.542999][T12603] allowing incompatible features above 0.0: (unknown version) [ 293.543004][T12603] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 293.543013][T12603] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 293.543100][T12603] bcachefs (loop2): invalid bkey in superblock btree=alloc level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key 72057594037927936:0:0 durability: 0 (invalid extent entry 0000000000000000) [ 293.543106][T12603] invalid extent entry type (got 7, max 7), deleting [ 293.543131][T12603] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 293.543183][T12603] bcachefs (loop2): Version upgrade required: [ 293.543183][T12603] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 293.543183][T12603] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 293.543183][T12603] 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,check_rebalance_work,set_fs_needs_rebalance [ 293.559102][T11536] bcachefs (loop8): shutdown complete [ 293.564025][T12105] bcachefs (loop9): shutdown complete [ 293.596602][T12603] bcachefs (loop2): accounting_read... [ 293.613055][ T32] INFO: task syz.4.38:7065 blocked for more than 143 seconds. [ 293.613066][ T32] Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 [ 293.613071][ T32] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 293.613076][ T32] task:syz.4.38 state:D stack:0 pid:7065 tgid:7065 ppid:6703 task_flags:0x400140 flags:0x00800019 [ 293.613089][ T32] Call trace: [ 293.613092][ T32] __switch_to+0x418/0x87c (T) [ 293.613111][ T32] __schedule+0x13b0/0x2864 [ 293.613119][ T32] schedule+0xb4/0x230 [ 293.613127][ T32] schedule_timeout+0xac/0x270 [ 293.613134][ T32] ___down_common+0x23c/0x374 [ 293.613141][ T32] __down_common+0xc0/0x3a4 [ 293.613147][ T32] __down+0x18/0x24 [ 293.613152][ T32] down+0x94/0xe8 [ 293.613158][ T32] bch2_run_recovery_passes+0x164/0x1f4 [ 293.613167][ T32] bch2_fs_recovery+0x1df4/0x2fb4 [ 293.613175][ T32] bch2_fs_start+0x940/0xbec [ 293.613181][ T32] bch2_fs_get_tree+0x880/0x107c [ 293.613189][ T32] vfs_get_tree+0x90/0x28c [ 293.613196][ T32] do_new_mount+0x278/0x7f4 [ 293.613204][ T32] path_mount+0x5b4/0xde0 [ 293.613212][ T32] __arm64_sys_mount+0x3e8/0x468 [ 293.613217][ T32] invoke_syscall+0x98/0x2b8 [ 293.613225][ T32] el0_svc_common+0x130/0x23c [ 293.613231][ T32] do_el0_svc+0x48/0x58 [ 293.613236][ T32] el0_svc+0x58/0x180 [ 293.613243][ T32] el0t_64_sync_handler+0x84/0x12c [ 293.613250][ T32] el0t_64_sync+0x198/0x19c [ 293.613282][ T32] [ 293.613282][ T32] Showing all locks held in the system: [ 293.613286][ T32] 3 locks held by kworker/u8:0/12: [ 293.613291][ T32] 2 locks held by kworker/u8:1/14: [ 293.613296][ T32] 1 lock held by khungtaskd/32: [ 293.613300][ T32] #0: ffff80008f9a9060 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 [ 293.613322][ T32] 3 locks held by kworker/u8:3/42: [ 293.613326][ T32] 1 lock held by pr/ttyAMA-1/43: [ 293.613336][ T32] 4 locks held by kworker/u8:7/4503: [ 293.613340][ T32] 1 lock held by udevd/6166: [ 293.613344][ T32] 2 locks held by getty/6312: [ 293.613348][ T32] #0: ffff0000cccbf0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c [ 293.613366][ T32] #1: ffff80009bbae2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x34c/0xfa4 [ 293.613386][ T32] 1 lock held by udevd/6582: [ 293.613390][ T32] 1 lock held by udevd/6610: [ 293.613396][ T32] 2 locks held by udevd/6792: [ 293.613402][ T32] 1 lock held by udevd/9242: [ 293.613406][ T32] 1 lock held by udevd/10867: [ 293.613411][ T32] 3 locks held by syz.2.530/12603: [ 293.613415][ T32] #0: ffff00010c584398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 [ 293.613433][ T32] #1: ffff0001017381b0 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked+0x68/0x200 [ 293.613450][ T32] #2: ffff00010c5849d8 (&c->mark_lock){++++}-{0:0}, at: bch2_accounting_read+0x144/0x45c8 [ 293.613468][ T32] 1 lock held by syz.1.531/12604: [ 293.613472][ T32] #0: ffff00010fa00278 (&c->state_lock){++++}-{4:4}, at: bch2_fs_read_write_early+0x20/0x48 [ 293.613489][ T32] 1 lock held by syz.7.532/12611: [ 293.613494][ T32] #0: ffff80008f850c88 (wq_pool_mutex){+.+.}-{4:4}, at: __alloc_workqueue+0x7b4/0x16d8 [ 293.613513][ T32] [ 293.613516][ T32] ============================================= [ 293.613516][ T32] [ 293.613520][ T32] Kernel panic - not syncing: hung_task: blocked tasks [ 293.673979][ T32] CPU: 1 UID: 0 PID: 32 Comm: khungtaskd Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT [ 293.675537][ T32] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 [ 293.676930][ T32] Call trace: [ 293.677373][ T32] show_stack+0x2c/0x3c (C) [ 293.678000][ T32] __dump_stack+0x30/0x40 [ 293.678621][ T32] dump_stack_lvl+0x30/0x12c [ 293.679297][ T32] dump_stack+0x1c/0x28 [ 293.679877][ T32] vpanic+0x280/0x780 [ 293.680425][ T32] vpanic+0x0/0x780 [ 293.680964][ T32] hung_task_panic+0x0/0x2c [ 293.681603][ T32] kthread+0x5fc/0x75c [ 293.682163][ T32] ret_from_fork+0x10/0x20 [ 293.682790][ T32] SMP: stopping secondary CPUs [ 293.683453][ T32] Kernel Offset: disabled [ 293.684086][ T32] CPU features: 0x40000,00007800,109c1141,5427fea7 [ 293.684950][ T32] Memory Limit: none [ 294.003391][ T32] Rebooting in 86400 seconds..