Fresel Michal - hi competence e.U.
2011-03-23 17:59:12 UTC
hi
i was thinking about the current state of integrity-tests ("RsyncCsumCacheVerifyProb")
on compressed files this means
# decompress
# create checksum of decompressed
# compare cached checksums
what about:
on first run
# create checksum of compressed file = checksum_compressed_1
# decompress
# create checksum of decompressed
# compare checksums (of cache)
# if checksums (of cache) are the same - recreate checksum of compressed (just in case we had some disk issue meanwile) = checksum_compressed_2
# compare checksum_compressed_1 to checksum_compressed_2
# if the same - save checksum of compressed file for future use
the next run we just need to checksum the compressed file as (the internal cached checksums) were already verified above
results in faster rechecks afterwards:
-) no need to decompress
-) checksum-calculations on compressed files is faster (less MB's to calculate)
Greetings
Mike
i was thinking about the current state of integrity-tests ("RsyncCsumCacheVerifyProb")
on compressed files this means
# decompress
# create checksum of decompressed
# compare cached checksums
what about:
on first run
# create checksum of compressed file = checksum_compressed_1
# decompress
# create checksum of decompressed
# compare checksums (of cache)
# if checksums (of cache) are the same - recreate checksum of compressed (just in case we had some disk issue meanwile) = checksum_compressed_2
# compare checksum_compressed_1 to checksum_compressed_2
# if the same - save checksum of compressed file for future use
the next run we just need to checksum the compressed file as (the internal cached checksums) were already verified above
results in faster rechecks afterwards:
-) no need to decompress
-) checksum-calculations on compressed files is faster (less MB's to calculate)
Greetings
Mike