meta data for this page
This is an old revision of the document!
Feature | ZFS | BTRFS | remarks |
---|---|---|---|
License | CDDL | GPL | |
Copy-on-write | Yes | Yes | |
Checksums | Yes | Yes | |
Encryption | |||
Online defragmentation | Yes | ||
Online growing / shrinking | Yes | ||
Online block dev add/rem | Yes(-) | Yes | ZFS: only mirrored devices can be removed |
Online deduplication | block | No | ZFS: planned |
Online compression | Yes | LZO / ZLIB | similar compression level |
BTRFS: There is a simple decision logic: if the first portion of data being compressed is not smaller than the original, the compression of the file is disabled – unless the filesystem is mounted with compress-force | |||
Subvolumes | Yes | Yes | |
Subvolumes inside subvol. | Yes | Yes | |
Linux root filesystem | ? | Yes | |
Striping | |||
Mirroring | |||
Online scrubbing | Yes | Yes | scrub - scan and check data integrity |
Check and compare:
- single file compression (btrfs: chattr +c …)
- online convert from RAID0 to RAID1
- direct mounting subvolumes (btrfs: by subvol path or subvol ID)
- file snapshot (btrfs: cp –reflink /mnt/sv1/test1 /mnt/sv1/test3)
- ZFS: online defrag (BTRFS: mount -o autodefrag)
- btrfs: convert from ext4 (btrfs-convert /dev/sdb1) and rollback
- btrfs as root
- Locate modified files from last snapshot (btrfs subvolume find-new)
- SSD upport (trim/discard)
ZFS:
- (+) All features are controlled by subvolumes (datasets) attributes (compression, deduplication)
- (-) CDDL license is not compatible with Linux kernel. Cannot be distributed as derived work.
- (-) Only mirrored block devices can be removed.
- (-) Deduplication on block level, cannot find shifted blocks.
BTRFS:
- (-) All features controlled by mount options
- (+) Every block device can be removed, data are automatically copied (balanced) to free space on other devices
- (+) Metadata are automatically duplicated between block devices, data are striped