On 21 July 2016 at 15:34, Chris Murphy <li...@colorremedies.com> wrote: > > Do programs have a way to communicate what portion of a data file is > modified, so that only changed blocks are COW'd? When I change a > single pixel in a 400MiB image and do a save (to overwrite the > original file), it takes just as long to overwrite as to write it out > as a new file. It'd be neat if that could be optimized but I don't see > it being the case at the moment.
Programs can choose to seek within a file and only overwrite changed parts, like BitTorrent (use NOCOW or defrag files like that). Paint programs usually compress the changed image on save, so most of the file is changed anyway. But if it's a raw image file just writing the changed pixels should work, but that would require a comparison with the original image (or a for pixel change history) so I doubt anyone cares to implement it at the application level. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html