User:L29Ah/Reflink-based snapshots for fun and profit

I figured filesystems without native snapshotting support, but having the "reflink" functionality (at the time of writing of the article it's XFS, CIFS, NFS, OCFS and bcachefs), still can provide "snapshots" immensely useful for major Gentoo system development (e.g. trying out new toolchains, libraries and so on) in case you don't feel like running more radical and all-encompassing filesystems like ZFS and BTRFS.

This script creates a new "snapshot" of the currently running system that you can chroot into and break things at your leisure (well, except the kernel-wide `/dev` and friends that handle your hardware and you don't generally want to break):