I was testing some of my md5sum routines and I kept getting weird results on ARM-based computers.
Specifically, the pool file md5sum numbers were different depending on whether I computed them under Fedora 12 on an x86 machine vs under Debian Lenny on an ARM-based computer. This obviously creates issues if you want to move your backup drive between different CPUs. I narrowed it down to Digest::MD5, by doing the following 1-liner: perl -e 'use Digest::MD5 qw(md5_hex);$file=testfile; $size=(stat($file))[7];$body=`cat $file`; print md5_hex($size,$body) . "\n";' This should be the same as: perl -e '$file=testfile; $size=(stat($file))[7];$body=`cat $file`; print $size, $body;' | md5sum For maybe 1% of files in my pool the ARM machine gave the wrong answer when using Digest::MD5 So, something must be wacko in the perl implementation of Digest::MD5 on ARM machines! ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
