Skip to main content

Questions tagged [copy-on-write]

2 votes
0 answers
683 views

I have a btrfs partition mounted on / with compression enabled: mount -o subvol=@,defaults,noatime,nodiratime,compress=zstd,space_cache=v2 /dev/mapper/archlinux /mnt I want to disable the CoW ...
ShellCode's user avatar
  • 235
3 votes
1 answer
1k views

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 ...
Bruce Adams's user avatar
1 vote
0 answers
50 views

Is the stack of a forked process shared with its parent? If so, does this happen via shared copy-on-write pages?
HappyFace's user avatar
  • 1,704
6 votes
1 answer
4k views

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 ...
computronium's user avatar
5 votes
4 answers
5k views

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 ...
lumbric's user avatar
  • 449
-2 votes
1 answer
103 views

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 ...
MVJ's user avatar
  • 1
1 vote
1 answer
1k views

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 ...
MountainX's user avatar
  • 19k
4 votes
0 answers
3k views

Is there any way to recover a deleted or overwritten file on ZFS? I accidentally overwrote a JPG file with a scanned image. Unfortunately, I didn’t take a snapshot beforehand. However, since ZFS uses ...
kou's user avatar
  • 41
10 votes
2 answers
7k views

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 ...
HubertNNN's user avatar
  • 203
1 vote
1 answer
507 views

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,...
Radek Uhlíř's user avatar
0 votes
2 answers
6k views

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 ...
Tim's user avatar
  • 107k
1 vote
1 answer
2k views

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 ...
js84's user avatar
  • 113
0 votes
1 answer
741 views

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 ...
Deepesh Meena's user avatar
0 votes
1 answer
142 views

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--...
Jim's user avatar
  • 469
1 vote
1 answer
835 views

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 ...
Camion's user avatar
  • 324

15 30 50 per page