BackupPC-users

Re: [BackupPC-users] 2 cpool files with same checksum, different (compressed content) but same zcatt'ed content?????

2008-10-31 07:22:52
Subject: Re: [BackupPC-users] 2 cpool files with same checksum, different (compressed content) but same zcatt'ed content?????
From: Tino Schwarze <backuppc.lists AT tisc DOT de>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 31 Oct 2008 12:20:50 +0100
On Thu, Oct 30, 2008 at 11:16:05PM -0400, Jeffrey J. Kosowsky wrote:

> I must be missing something on this whole compression, pooling, and
> checksum matter.
> 
> I found 2 files in my cpool that have the same checksum (one is _0)
> but 'cmp' to different values. However, when I zcat them, they have
> the same value. I thought that (lossless) compression was a 1-1
> mapping?

Please post the output of the following:
ls -l yourfile*
md5sum yourfile*
BackupPC_zcat yourfile | md5sum
BackupPC_zcat yourfile_0 | md5sum

> But here we seem to have two files that are identical (and thus have
> the same checksum) but compress to 2 *different* results?

Again: The file name ist NOT the checksum of the whole file's contents!
It's just an MD5 sum which incorporates the first 256k of the file and
the file's original length (as I learned this week from this list).

> This would seem to be going against the grain of pooling where two
> identical files share the same pool entry.
> 
> What am I missing?

That hash collisions are expected.

Tino.

-- 
"What we nourish flourishes." - "Was wir nähren erblüht."

www.lichtkreis-chemnitz.de
www.craniosacralzentrum.de

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/