Okay, so first of all, it's true that send is always fast and 100% reliable because it uses blocks to see differences. Good, and thanks for this information. If everything else fails, I can parse the information I want from send stream :)

But am I right, that there is no other methods to get the list of changed files other than the send command?

And in my situation I do not need to create snapshots. They are already created. The only thing that I need to do, is to get list of all the changed files (and maybe the location of difference in them, but I can do this manually if needed) between two already created snapshots.

Regards,
Henrik Heino

Quoting Andrey Kuzmin <andrey.v.kuz...@gmail.com>:

In the periodic snapshot/send diff scenario you presumably ask about,
zfs_send basically creates snapshot(n+1) and then performs pruned
tree-walk limited to blocks modified between snap(n) and snap(n+1).
See http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libzfs/common/libzfs_sendrecv.c#1127
for details.

Regards,
Andrey




On Wed, Feb 3, 2010 at 1:04 PM, Henu <henrik.he...@tut.fi> wrote:
Hello

Is there a possibility to get a list of changed files between two snapshots?
Currently I do this manually, using basic file system functions offered by
OS. I scan every byte in every file manually and it is of course awfully
slow.

If I have understood correctly, ZFS could use its own information about
which files use which blocks, and thereby calculate the difference very
quickly without having to scan every byte. Currently I haven't found any
tools like this. My application uses libZFS to handle ZFS.

On the other hand, I have noticed that ZFS send generates difference very
quickly, even if it needs to find the small difference between many
unchanged files. From this, I have concluded that it may be using the ZFS
information to quickly see if file has been modified or not. Do you have any
idea how the send works? Maybe I could use its output to get the list of
changed files...

Henrik Heino

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss





_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to