On Wed 12 Apr 2017 04:10:46 PM CEST, Max Reitz <mre...@redhat.com> wrote: >> I still don't see why we can always assume OFLAG_COPIED. Before doing >> the COW one cluster can have references from multiple snapshots, > > Yes... > >> and OFLAG_COPIED is equally valid in that context. > > In what context? When having subclusters? Why? > >> We still need to know if we need to perform COW when writing to it, >> regardless of whether it has subclusters or not. > > But why would you reference a cluster multiple times if it has > subclusters? Yes, you can do it in theory, but we could just disallow > it, because it doesn't make sense.
We discussed this yesterday on IRC, but I'm writing the summary here for reference: if you want be able to create internal snapshots quickly without having to copy a lot of data, you need to be able to have multiple references to one cluster. Anyway, it seems that this discussion is only relevant if we're trying to save as many bits as possible because we want to store everything in a 64-bit entry -alternative (1) from my original e-mail-. I agree that for that alternative the usefulness of that bit can be put into question. Berto