Finding the proper scope of a file collapse operation
Finding the proper scope of a file collapse operation
Posted Mar 6, 2014 8:37 UTC (Thu) by fishface60 (subscriber, #88700)Parent article: Finding the proper scope of a file collapse operation
I've got the sneaking suspicion that btrfs may already be able to do everything that's required, since it has an ioctl for cloning a range of data in a file, that can work on the same file.
I don't know if it'll handle moving nicely, but even if it doesn't, you can create a new copy of the file without the required range, by just cloning the data before and after into it, then replace your old file with the new one.
