by mappu · 2y ago · 0 comments
https://patchwork.kernel.org/project/linux-block/cover/20240...
Can you give or link to a brief description of how blksnap works?
Blksnap is better because it does not require setup in advance like LVM, and it does not require interrupting any live users like fsfreeze. It "should" just work with the live block device within the WSL distro.
LWN covered the v1 posting, which is a good start: https://lwn.net/Articles/914031/
This is all somewhat future-looking, and if you only want file-level snapshotting instead of block-level, it's probably easier to try and get btrfs/bcachefs/nilfs2 instead. My WSL2 on Windows 11 shows btrfs present inside /proc/filesystems.
In the 2024 century the default LVM setup still does not offer to leave some spare space on the volume group. Without that unallocated space it's impossible to create snapshots for LVs.
Oh, and the change-tracking function is non existent for both LVM and dev mapper!