XFS Copy-On-Write Support Being Improved, Always CoW Option
Christoph Hellwig has been among the XFS developers working on the copy-on-write improvements as well as adding an always_cow sysfs option. The latest XFS CoW patches were sent out on Monday for review.
The always_cow mode forces XFS to never overwrite existing blocks in place. At this time it's largely for assistance in debugging their copy-on-write code but also to prepare for future work like zoned block device support where overwriting blocks shouldn't happen.
The latest XFS CoW patches are available for testing via this Git branch.
With Btrfs adoption not taking off like some had hoped years ago, ZFS not being re-licensed for mainline kernel acceptance, and other options like Bcachefs having yet to prove themselves (or even being mainlined in the case of Bcachefs), the new feature work going into XFS is all the more interesting especially with Red Hat making use of the file-system in their Stratis storage technology. Those wanting to learn more about the current feature developments around XFS can see the LCA2018 video embedded below.