<div dir="ltr"><div>Thanks for the tips. Overlay is deffo an improvement as it will only take a copy of a file if there is a change but it's still a full copy of the entire file.</div><div>I am wondering if there's a way that XFS, ZFS or whatever can do something even deeper and maintain partial/block differences or something.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 7 Jun 2019 at 16:25, Andy Smith via Nottingham <<a href="mailto:nottingham@mailman.lug.org.uk">nottingham@mailman.lug.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
On Fri, Jun 07, 2019 at 03:12:21PM +0100, J J via Nottingham wrote:<br>
> With Ext4, is there some magic way I can create and ad hoc "differencing<br>
> volume" that appear to be like a copy but isn't. The tests can do what they<br>
> like and that the whole thing gets chucked.<br>
> i.e. avoiding the copy operation<br>
<br>
You already found overlayfs. Another possible answer is btrfs or<br>
xfs, which support copy on write.<br>
<br>
By using either of those you can do cp --reflink=always … and it<br>
will do a copy that only adds a reference to the source, not an<br>
actual copy of the data. This uses no additional space. If you alter<br>
one of the copies then the link is broken.<br>
<br>
And of course btrfs also has writeable snapshots.<br>
<br>
Cheers,<br>
Andy<br>
<br>
-- <br>
<a href="https://bitfolk.com/" rel="noreferrer" target="_blank">https://bitfolk.com/</a> -- No-nonsense VPS hosting<br>
<br>
-- <br>
Nottingham mailing list<br>
<a href="mailto:Nottingham@mailman.lug.org.uk" target="_blank">Nottingham@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/nottingham" rel="noreferrer" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/nottingham</a></blockquote></div>