On 10/22/2014 03:10 AM, Robert White wrote: > Each snapshot is effectively stapling down one version of your > entire metadata tree, right ? On the best of my knowledge, I cannot confirm that.
I understood (please, be free to correct me if I am wrong) that each snapshot create a copy of the changed leaf (of the (b)tree), and update (doing a copy) all the nodes up to the tree root. [...] > (Of course I could be wrong about the "never move" rule, but that > would just make the checksums on the potentially hundreds or > thousands of references need to be recalculated after a move, which > would make incremental send/receive unfathomable.) Between the physical data on the disk and the logical data see by the tree(s) there is an indirection layer: the tree chunks. Near all the trees refer to the data in terms of "logical" position. The logical position is translated to the physical one by the tree chunks. The balance is related to the movement of the chunk between the disks. But the data is unchanged. Anyway I fully agree with you when you say: > Snapshots are cheap but they aren't free. BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it> Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html