Re: snapshot merging?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-09-23 at 20:34 -0700, Daniel Phillips wrote:
> On Sunday 21 September 2008 07:31, Tomasz Chmielewski wrote:
> > > Writeable snapshot has been available in btrfs for a long time.
> > 
> > Writeable snapshots and snapshot merging are two different things.
> 
> I think what Mikulas really means by "snapshot merging" is what we call
> "revert to snapshot" in ddsnap (google Zumastor ddsnap).  The latter is
> more appropriate terminology IMHO.  For a snapshotted volume, this just
> requires copying any blocks that belong to the snapshot and not the
> origin back to the origin.  Similarly, one could revert any snapshot
> "back" (quotes because there is not necessarily any relationship in
> time) to any other.  For a filesystem it will not be nearly so simple,
> because at best only part of the job can be done at the physical block
> level.

In btrfs there's no need to merge.  The original is still there and you
just use it instead of the snapshot.  Both the original and the snapshot
are writable, you can pick whichever one you want to continue forward
with.

Said a different way, the underlying metadata structures and
capabilities of the snapshot and the original are the same.  The only
difference between the two is their starting state.

-chris


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux