btrfs --repair corrupts my filesystem
After repair a lot of files, for example all my VDI (virtualBox Files) have a Size but all the contents is hex 01.
Is there a chance to “rollback” the repair task without a btrfs image?
Or what can be done to analyze the situation?
btrfs filesystem show /users
Label: none uuid: 5a6ea9ca-6500-4da4-b4d5-7f7a7c372b45
Total devices 1 FS bytes used 677.19GiB
devid 1 size 900.00GiB used 900.00GiB path /dev/mapper/system-users
Btrfs v3.12+20131125
btrfs filesystem df /users
Data, single: total=873.97GiB, used=676.75GiB
System, DUP: total=8.00MiB, used=100.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=13.00GiB, used=446.52MiB
Metadata, single: total=8.00MiB, used=0.00
btrfsck /dev/mapper/system-users
Checking filesystem on /dev/mapper/system-users
UUID: 5a6ea9ca-6500-4da4-b4d5-7f7a7c372b45
checking extents
Block Group[0, 4194304] existed.
ref mismatch on [29360128 4096] extent item 1, found 0
Backref 29360128 root 7 not referenced back 0xe7d9e10
Incorrect global backref count on 29360128 found 1 wanted 0
backpointer mismatch on [29360128 4096]
owner ref check failed [29360128 4096]
owner ref check failed [525051383808 4096]
owner ref check failed [525051396096 4096]
owner ref check failed [525051400192 4096]
owner ref check failed [525051404288 4096]
owner ref check failed [525051408384 4096]
owner ref check failed [525051412480 4096]
owner ref check failed [525051416576 4096]
owner ref check failed [525051420672 4096]
owner ref check failed [525051424768 4096]
owner ref check failed [525051428864 4096]
owner ref check failed [525051432960 4096]
owner ref check failed [525051437056 4096]
owner ref check failed [525051441152 4096]
owner ref check failed [525051445248 4096]
Errors found in extent allocation tree or chunk allocation
checking free space cache
cache and super generation don’t match, space cache will be invalidated
checking fs roots
root 5 inode 273 errors 1000, some csum missing
root 5 inode 274 errors 1000, some csum missing
root 5 inode 275 errors 1000, some csum missing
root 5 inode 277 errors 1000, some csum missing
…
root 5 inode 183349 errors 1000, some csum missing
root 5 inode 183355 errors 1000, some csum missing
found 6210985113 bytes used err is 1
total csum bytes: 0
total tree bytes: 467992576
total fs tree bytes: 311853056
total extent tree bytes: 155643904
btree space waste bytes: 64294172
file data blocks allocated: 24884375523328
referenced 588879613952
Btrfs v3.12+20131125
4373.584729] BTRFS error (device dm-3) in btrfs_run_delayed_refs:2685: errno=-2 No such entry
4373.584730] BTRFS info (device dm-3): forced readonly
4373.652760] BTRFS warning (device dm-3): Skipping commit of aborted transaction.
4373.652764] BTRFS error (device dm-3) in cleanup_transaction:1506: errno=-2 No such entry
4373.654666] btrfs: commit super ret -2
4373.693207] ------------ cut here ]------------
4373.693226] WARNING: CPU: 0 PID: 8974 at /home/abuild/rpmbuild/BUILD/kernel-desktop-3.11.10/linux-3.11/fs/btrfs/extent-tree.c:4676 btrfs_free_block_groups+0x345/0x360 btrfs
4373.693227] Modules linked in: ip6table_filter ip6_tables iptable_filter ip_tables x_tables usb_storage rfcomm fuse af_packet vboxpci(O) vboxnetadp(O) vboxnetflt(O) bnep vboxdrv(O) nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_hdmi snd_hda_codec_via btusb iTCO_wdt iTCO_vendor_support bluetooth mxm_wmi snd_hda_intel x86_pkg_temp_thermal rfkill intel_powerclamp snd_hda_codec coretemp snd_hwdep kvm_intel snd_pcm kvm crc32_pclmul ghash_clmulni_intel aesni_intel ablk_helper cryptd snd_seq lrw snd_timer gf128mul glue_helper aes_x86_64 pcspkr serio_raw snd_seq_device i2c_i801 snd atl1c sr_mod cdrom lpc_ich mfd_core soundcore snd_page_alloc mei_me shpchp mei mperf wmi intel_smartconnect sg autofs4 efivarfs btrfs raid6_pq zlib_deflate xor libcrc32c linear crc32c_intel i915 drm_kms_helper drm i2c_algo_bit
4373.693246] xhci_hcd fan thermal video button processor thermal_sys scsi_dh_rdac scsi_dh_hp_sw scsi_dh_emc scsi_dh_alua scsi_dh dm_snapshot dm_mirror dm_region_hash dm_log dm_mod
4373.693253] CPU: 0 PID: 8974 Comm: umount Tainted: G W O 3.11.10-29-desktop #1
4373.693254] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./Z77X-D3H, BIOS F8 05/11/2012
4373.693255] 0000000000000009 ffffffff815a1ac2 0000000000000000 ffffffff81051e82
4373.693257] 0000000000000000 ffff8803320f4000 ffff8801f29a53c0 ffff8803320f4078
4373.693259] ffff8803320f4088 ffffffffa0250305 ffff8803320f4000 ffff88022a469800
4373.693260] Call Trace:
4373.693267] <ffffffff81004ae8>] dump_trace+0x88/0x310
4373.693270] <ffffffff81004e40>] show_stack_log_lvl+0xd0/0x1d0
4373.693272] <ffffffff8100627c>] show_stack+0x1c/0x50
4373.693275] <ffffffff815a1ac2>] dump_stack+0x50/0x89
4373.693278] <ffffffff81051e82>] warn_slowpath_common+0x72/0x90
4373.693284] <ffffffffa0250305>] btrfs_free_block_groups+0x345/0x360 [btrfs]
4373.693302] <ffffffffa025c15b>] close_ctree+0x12b/0x270 [btrfs]
4373.693318] <ffffffff8118958d>] generic_shutdown_super+0x4d/0xd0
4373.693320] <ffffffff81189959>] kill_anon_super+0x9/0x20
4373.693325] <ffffffffa0235b1d>] btrfs_kill_super+0xd/0x80 [btrfs]
4373.693330] <ffffffff81189ce3>] deactivate_locked_super+0x33/0x50
4373.693333] <ffffffff811a5a6c>] SyS_umount+0x8c/0x3a0
4373.693335] <ffffffff815af76d>] system_call_fastpath+0x1a/0x1f
4373.693338] <00007fed424a9e77>] 0x7fed424a9e76
4373.693339] — end trace 99b13e813b9af9d1 ]—
Regards
Norbert