naota / linux

Linux kernel source tree
Other
3 stars 1 forks source link

btrfs check: space generation mismatch #43

Closed kdave closed 3 years ago

kdave commented 3 years ago

On a filesystem with some data, running btrfs check prints:

Opening filesystem to check...
Checking filesystem on /dev/nullb0
UUID: 9daa6be6-1941-4967-85f0-e3bcb5b48279
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
cache and super generation don't match, space cache will be invalidated
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 176201728 bytes used, no error found
total csum bytes: 1352512
total tree bytes: 3080192
total fs tree bytes: 1294336
total extent tree bytes: 163840
btree space waste bytes: 504244
file data blocks allocated: 173121536
 referenced 173133824

The message "cache and super generation don't match, space cache will be invalidated" looks strange.

kdave commented 3 years ago

This is not related to zoned mode and there's a proposed fix in the mailinglist https://lore.kernel.org/linux-btrfs/20210330022830.491831-1-l@damenly.su/ .