On Mon, 13 Apr 2009, Robert Milkowski wrote:
That's because without --inplace rsync will copy a file first, then apply changes to it and if successful will remove the old file. So if the old file is still in snapshot you will end-up with a new copy of the file and the old copy being kept in a pool. Now with inplce you're telling rsync to overwrite any changed blocks directly over the original file instead of making a full copy of a file. Everytime you overwrite some data zfs will allocate new blocks only for those blocks and keep the original blocks as long as they are referenced by at least one snapshot.
It should be noted that using --inplace without also employing zfs snapshots makes rsync almost useless as a backup mechanism. If there is a problem with reading all or part of the original file, then rsync is likely to destroy the backup file as well.
Bob -- Bob Friesenhahn bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss