What ext4 functionality does btrfs not support?

Disadvantages of btrfs compared to ext4:

  1. btrfs doesn't support badblocks

    This means that if you've run out of spare non-addressable sectors that the HDD firmware keeps to cover for a limited number of failures, there is no way to mark blocks bad and avoid them at the filesystem level.

  2. Swap files are only supported via a loopback device, which complicates things because it seems impossible to resume from suspend using this method

  3. It's quite tricky to calculate free space, so much so that...

  4. You can get "No space left on device" errors even though btrfs' own tools say there is space


A major disadvantage (especially in regards to Ubuntu switching to swap files on new installations) is that butter FS (as I like to pronounce it) does not support swapping files, see FAQ - Does btrfs support swap files? | btrfs Wiki :

Does btrfs support swap files?

Currently no. Just making a file NOCOW does not help, swap file support relies on one function that btrfs intentionally does not implement due to potential corruptions. The swap implementation used to rely on some assumptions which may not hold in btrfs, like block numbers in the swap file while btrfs has a different block number mapping in case of multiple devices. There is a new API that could be used to port swap to btrfs; for more details have a look at project ideas#Swap file support.

A workaround, albeit with poor performance, is to mount a swap file via a loop device.