public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Re-using identical COW entries ?
@ 2021-12-03 17:38 Jens Bauer
  0 siblings, 0 replies; only message in thread
From: Jens Bauer @ 2021-12-03 17:38 UTC (permalink / raw)
  To: linux-btrfs

Hi.

Thinking about hashing and checksumming, I was wondering ...

Does BTRFS re-use identical COW entries ?
-Eg. if I'm compiling the same sources over and over, producing the same binaries over and over ...
Then the binaries would be deleted, then written again, deleted, ... repeat.

If deletion of unused entries would be just a bit that's set/cleared (which it's probably not, for safety), then 
a COW entry could be re-used quickly (making writes faster).

It would of course require that the COW entry is not modified since last time (but if it was, it would have a different hash/checksum anyway).

Reason for thinking this way, is because I just copied 1.9 TB backup onto a disk-image which is on a BTRFS volume; the disk image uses 1.7TB space so far (and I'm incrementally updating that backup) and I know I have several identical files. Using a disk-image, because seen from Linux, it's a non-native file format.


Love
Jens

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-03 17:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03 17:38 Re-using identical COW entries ? Jens Bauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox