Open jonashaag opened 3 years ago
free space report:
total: 417914159104
free: 101515264 (0.02%)
Isn't this already showing the problem?
You only have around 100MiB For metadata.
Considering how many data you have already, 400+G, just for csum you will need at least 400+MiB space.
No wonder btrfs_search_slot()
fails with -ENOSPC
Fair enough, I just reported this because the traceback said BUG. If there isn’t anything to fix here maybe at least the error message could be improved.
Also, according to df
, I’ve had a lot more space left. Could it be that there was some space used by an earlier conversion attempt (that failed due to a bug in v5.4)?
For the BUG_ON
we definitely need to make it more graceful.
The space reported by ext* is not directly usable for btrfs. The space btrfs can utilize for its metadata is just a subset of the free space.
One of the main reason of greatly reduced usable space is fragmentation.
Btrfs needs somewhat contig free space for its new chunks, thus if your fs has a lot of free space, but very fragmented, then you can see the result.
Previously convert attempt won't cause anything different.
Downstream bug with btrfs-progs 5.10.
Kernel bug report with v6.2
This is with btrfs-progs master