On February 3, 2010 6:02:52 PM +0100 Jens Elkner <jel+...@cs.uni-magdeburg.de> wrote:
On Wed, Feb 03, 2010 at 10:29:18AM -0500, Frank Cusack wrote:
# newer files
find /file/system -newer /file/system/.zfs/snapshot/snapname -type f
# deleted files
cd /file/system/.zfs/snapshot/snapname
find . -type f -exec "test -f /file/system/{} || echo {}" \;

The above requires GNU find (for -newer), and obviously it only finds
files.  If you need symlinks or directory names modify as appropriate.

The above is also obviously to compare a snapshot to the current
filesystem.  To compare two snapshots make the obvious modifications.

Perhaps http://iws.cs.uni-magdeburg.de/~elkner/ddiff/ wrt. dir2dir cmp
may help as well (should be faster).

If you don't need to know about deleted files, it wouldn't be.  It's hard
to be faster than walking through a single directory tree if ddiff has to
walk through 2 directory trees.

If you do need to know about deleted files, the find method still may
be faster depending on how ddiff determines whether or not to do a
file diff.  The docs don't explain the heuristics so I wouldn't want
to guess on that.

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

Reply via email to