Does any file system implement Copy on Write mechanism for CP?
29
votes
4
answers
20352
views
We have seen OS doing Copy on Write optimisation when forking a process. Reason being that most of the time fork is preceded by exec, so we don't want to incur the cost of page allocations and copying the data from the caller address space unnecessarily.
So does this also happen when doing CP on a linux with ext4 or xfs (journaling) file systems? If it does not happen, then why not?
Asked by Mridul Verma
(393 rep)
Sep 20, 2017, 01:56 AM
Last activity: Feb 26, 2021, 10:31 AM
Last activity: Feb 26, 2021, 10:31 AM