Questions tagged [copy-on-write]
The copy-on-write tag has no usage guidance.
21
questions
1
vote
1
answer
44
views
Copy on write for directories?
Some file-systems notably XFS and btrfs support Copy on Write at block level for files.
This is done by reflinking where the underlying blocks are shared between files until they are modified.
Since a ...
1
vote
0
answers
39
views
Is the stack of a forked process shared with its parent? [duplicate]
Is the stack of a forked process shared with its parent?
If so, does this happen via shared copy-on-write pages?
0
votes
1
answer
876
views
In what ways is the COW filesystem an improvement over the Journaling Filesystem?
I don't think an informative answer exists on u&l or otherwise, which mentions why COW filesystems are a leg-up over any of the three modes of journaling. How does the former provide both superior ...
3
votes
4
answers
1k
views
How to check disk usage for folders containing reflinked files on XFS?
XFS supports copy on write (CoW), so it is not entirely clear what du will say if some of the bytes are shared across files. I'd like to find a way to check how much disk space a folder uses, not ...
-2
votes
1
answer
49
views
snapshot management tool implementation
I want to implement a command-line tool that allows me to take snapshots of the filesystem for linux/unix systems.
I know there are various ways to implement snapshot
Copy-On-Write
Redirect-On-Write
...
1
vote
1
answer
405
views
How to disable BTRFS copy-on-write updates for a subvolume using btrfs-property instead of chattr
I want to disable BTRFS copy-on-write updates for a subvolume using the newer method btrfs property instead of the old method chattr.
I found the man page here:
Manpage/btrfs-property - btrfs Wiki
...
2
votes
1
answer
1k
views
Does anyone know the way to undelete file on ZFS?
Is there any way to undelete file on ZFS.
I overwrote JPG file with the scanned image.
Unfortunately, I didn't take snapshot.
But ZFS uses the CoW mechanism, overwritten data may still alive, I think.
...
7
votes
2
answers
3k
views
How does ZFS copy on write work for large files
Let's say I have a large file (8GB) called example.log on ZFS.
I do cp example.log example.bak to make a copy. Then I add or modify a few bytes in original file. What will happen?
Will ZFS copy the ...
1
vote
1
answer
346
views
A good way how to backup user data in CentOS?
I need to back up my data and I have not found a good way so far.
Just say I have 1 TB of a non-system disk with 50-100 GB of user data (binary files, source code, images, etc.). And another big disk,...
0
votes
2
answers
4k
views
Is copy-on-write not implemented based on page fault?
Operating System Concepts say
fork() we can use a technique known as copy-on-write,
which works by allowing the parent and child processes initially to share the
same pages. ...
When it is ...
1
vote
1
answer
1k
views
fork() and COW behavior after exec()
We understand the COW behavior after a fork (as for example described here) as follows: fork creates a copy of the parent's page table for the child and marks the physical pages read only, so if any ...
0
votes
0
answers
529
views
can two running processes share the complete process image in physical memory, not just part of it?
can two running processes share the complete process image in physical memory, not just part of it?
Here I am talking about the Linux operating systems(eg. Ubuntu).
My thinking:
I think it is ...
0
votes
1
answer
69
views
Report directories with contents that exist elsewhere even if scattered
I want to generate a report of directories that I know I can safely delete (even if requiring a quick manual verification), because I know that the full contents all the way down, exist elsewhere--...
0
votes
1
answer
444
views
Doesn't the existence of LVM snapshots slows down writing a file system wich doesn't support them natively?
As far as understand snapshots in LVM (please, do correct me if I'm wrong): since they are not persistent and work even with a file system which doesn't itself support snapshots => I suppose it must ...
3
votes
1
answer
760
views
Will writing identical data to blocks of a file under ZFS use space in snapshots?
I have a 16M file.
I take a snapshot of the ZFS filesystem which contains it.
If I overwrite the file with the same data, will ZFS need to store two copies of all of the blocks of the file?
12
votes
2
answers
10k
views
btrfs — Is it dangerous to defragment subvolume which has readonly snapshots?
If you open the defragment section of btrfs-filesystem(8), you will see the following ominous inscription left by the developers:
Warning: Defragmenting with Linux kernel versions < 3.9 or ≥ 3....
21
votes
4
answers
14k
views
Does any file system implement Copy on Write mechanism for CP?
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 ...
1
vote
1
answer
679
views
copy on write and read only files - linux
Suppose I have a single process which has some read-only pages, and it tries to write to one of those pages. This of course will raise a read-fault.
My question is: does linux knows that the read-...
4
votes
2
answers
3k
views
BTRFS inside a KVM-VM on a qcow2 formatted image
I have a Ubuntu 14.04 application appliance that makes heavy use of BTRFS snapshots. The application is meant to be hypervisor agnostic and the snapshots need to be stored with the virtual machine ...
-2
votes
1
answer
566
views
How is btrfs (copy-on-write) different than RAID?
Whenever I hear copy-on-write my brain immediately starts thinking RAID. How is COW any different from RAID-x version ?
Both need more than 1 HDD to be useful, both make a copy of data when data is ...
1
vote
1
answer
288
views
How can I tell which copies of a file are COW copies?
I have a ZFS system connected to a macintosh over NFS. The system is nearly full, but I have found a large number of duplicate files with jdupes.
I don't know how these copies were made, it's ...