BTRFS swapfile support and code cleanup
New features
- BTRFS swapfile support
- Only create the first swapfile (swapfc) if we're low on ram instead of on startup
- Setting to specify zRAM count
Updates
- Update defaults to zstd compression and z3fold
- Remove dependencies on external shell programs improving performance
- Various code cleanups
- Various documentation updates
- Harden systemd service
Bug fixes
- Use
dd
instead offallocate
if we're on ext4/3, f2fs or xfs (#109) - Don't attempt
chattr +C
on filesystems that don't support the flag
Regressions
If you're running Ubuntu 18.04 or Centos 7 or older, please comment out line 25 in /usr/lib/systemd/system/systemd-swap.service
(see #118)