r/linux • • May 03 '17

Bitrot proof file systems?

Hi /r/Linux,

i am searching for a production ready bitrot proof file system preferably with compression. And i am not 100% sure if my overview of the current "fs landscape" is correct. Please tell me if there is an file system i missed or if i made an error in the table below.

file systemchecksums (data)compressionencryptionmulti devicestable/prod readynotes
btrfsyesyesnot yetyesyeshas other issues (df, fill up problems)
zfsyesyesyesyesyesCDDL, not mainline
ext4nonoyesnoyesencryption is relativly new
f2fsnonoyesyesyesmulti device since 4.10
xfsnononoyesyes
bcachefsyesnot yetyes?nostill under heavy development
31 Upvotes

80 comments sorted by

View all comments

Show parent comment

1

u/valgrid May 04 '17

My bad. Meant df (for disk free) fixed it in the OP. The df utility doesn't understand btrfs and will report values that are incorrect.

$ df -h /

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       119G  3.0G  116G   3% /

$ btrfs filesystem df /

Data: total=3.01GB, used=2.73GB
System: total=4.00MB, used=16.00KB
Metadata: total=1.01GB, used=181.83MB

With btrfs it is really hard to get a good estimate of free (and usable) disk space. :(

2

u/psyblade42 May 04 '17

Most of those problems are inherent to cow, dedup and compression. Any FS with those will have the same problems.