Questions tagged [copy-on-write]
215 questions
-1
votes
2 answers
NODE.JS why we should use : COPYFILE_FICLONE and COPYFILE_FICLONE_FORCE what is it for?
Guys I am trying to learn Node.js by reading Node.js documentation.
I began to learn fs module firstly
and while learning I saw this explanation:
mode is an optional integer that specifies the behavior of the copy operation. It is possible to…

Remzi Mete
- 1
- 2
-1
votes
1 answer
Do we have to implement copy on write behavior for our custom types?
In Swift, collections are implicitly implemented with copy on write behavior; However, we don't get it for free in our custom types.
My main question is:
Regardless of how to achieve it, is it a good idea to do for our custom types? Why/Why…

Ahmad F
- 30,560
- 17
- 97
- 143
-1
votes
2 answers
segmentation fault with deep copy
I am trying to make a deep copy (for copy on write) of an object but I get a segmentation fault.
I am using a hashtable with linked list.
class Person
{
public:
Person(const char * id,int nb)
{
this->id=strdup(id);
…

bandera
- 49
- 9
-2
votes
1 answer
File copy-on-write in Java?
I'm using brtfs, and I'd like my Java program to copy a set of large files copy-on-write.
In other words, what's the equivalent of cp --reflink=auto in some library that hopefully exists and somebody has heard of, so they can tell me? :-)

Johannes Ernst
- 3,072
- 3
- 42
- 56
-2
votes
1 answer
Does php's copy on write work with arrays?
Does php's copy on write work with arrays? Also if you could suggest a way to debug when a copy on write is happening that would be appreciated

Cory Baumer
- 397
- 3
- 16