Re: Binary diff between two snapshots?

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

 



On Sun, 14 Dec 2014 13:32:11 -0800, Vyacheslav Dubeyko wrote:
> On Mon, 2014-12-08 at 20:12 +0100, Frank Louwers wrote:
>> Hi all,
>> 
>> I was wondering if there is a way to get a binary “diff” between two snapshots? Output would be the contents off the blocks that are changed + some metadata to tell which blocks it actually are. Goal would be:
>> 
>> - take FS at snapshot A, sync that snapshot to a different volume/LUN/remote machine/…
>> - [changes occur to the fs]
>> - take FS at point B
>> 
>> I’d now like to get the “diff” between A and B, and get it in a format we can apply to the secondary (“backup”) volume that is still at level A. Outcome would be that the second volume is a copy of the first volume, at point B.
>> 
>> Inspiration: https://github.com/mpalmer/lvmsync
>> 
> 
> There are experimental branches:
> 
> nilfs-utils  git://github.com/konis/nilfs-utils.git  (diff-v2 branch)
> kernel       git://github.com/konis/nilfs2.git       (diffapi-v2 branch)
> 
> The nilfs-diff shows changes between two checkpoints of nilfs2 volume.
> 
> [1] http://marc.info/?l=linux-nilfs&m=141294888117653&w=2
> [2] http://marc.info/?l=linux-nilfs&m=134404514116556&w=2

Sorry for my late reply.  (And, thanks Vyacheslav for following)

This patchset is very experimental and only implements diff of changed
inodes.  it doesn't provide API to enumerate data extents changed
between two snapshots.

To realize the fs-diff, we need to implement the missing API.

Another approach is listing block numbers changed between two
snapshots by scanning throuch DAT file - a special metadata of NILFS
used to translate relocatable block addresses to real ones.

This approach, however, is not flexible than the former because the
size of source partition must equal that of destination partition, and
also needs to sync partitions before running garbage collection.

Regards,
Ryusuke Konishi

> Thanks,
> Vyacheslav Dubeyko.
> 
>> 
>> 
>> Frank Louwers
>> Openminds bvba
>> 
>> Tel: +32 9 225 82 91--
>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" 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 BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux