All of lore.kernel.org
 help / color / mirror / Atom feed
* CoW behavior when writing same content
@ 2018-10-09 14:48 Gervais, Francois
  2018-10-09 15:52 ` Chris Murphy
  0 siblings, 1 reply; 5+ messages in thread
From: Gervais, Francois @ 2018-10-09 14:48 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

Hi,

If I have a snapshot where I overwrite a big file but which only a
small portion of it is different, will the whole file be rewritten in
the snapshot? Or only the different part of the file?

Something like:

$ dd if=/dev/urandom of=/big_file bs=1M count=1024
$ cp /big_file root/
$ btrfs sub snap root snapshot
$ cp /big_file snapshot/

In this case is root/big_file and snapshot/big_file still share the same data?

Thank you

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-09 22:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-09 14:48 CoW behavior when writing same content Gervais, Francois
2018-10-09 15:52 ` Chris Murphy
2018-10-09 16:21   ` Roman Mamedov
2018-10-09 17:25   ` Andrei Borzenkov
2018-10-09 22:31     ` Chris Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.