1
Let's say files orig
and copy
are huge but identical files. In order to save storage space one could therefore either make copy
a soft-link to orig
or hard-link both files to the same data. orig
must never be modified, while in the future copy
may do so.
Can it be achieved that copy
becomes a files of its own again the instance modifications are made to it, thus keeping orig
unmodified at the expense of loosing the previously saved space again?
4The general scheme is called "copy on write". I am not aware of any file systems that do that, but it might help with searching. – dmckee --- ex-moderator kitten – 2012-02-11T00:00:43.367
2http://en.wikipedia.org/wiki/Single-instance_storage and http://en.wikipedia.org/wiki/Data_deduplication – ta.speot.is – 2012-02-11T00:01:21.647
On Windows, "Single instance storage" is quite similar. (For Linux, btrfs comes to mind:
cp --reflink
.) – user1686 – 2012-02-11T00:02:11.250