Add checksums to tarstore, and partially migrate to using it for storage.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Mon, 16 Apr 2007 04:34:07 +0000 (21:34 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Mon, 16 Apr 2007 04:34:07 +0000 (21:34 -0700)
commit5eeb3286b0a8a892195462c37815a064311ce1f6
tree412a9e5ed4729a61650775167b2116d7db21ca8d
parentae63026708d2e0e112f7ff79780c60439a990a85
Add checksums to tarstore, and partially migrate to using it for storage.

Each tarfile segment gets a file called "checksums" now which contains
SHA-1 hashes of all objects contained in it.  There is currently no
checksum computed for the checksum file itself.

Begin migrating scandir to using the tar-based storage for backups.
Backups in the old format are still written, and there is still some
other cleanup to be done, but most of the raw data is currently handled.
scandir.cc
sha1.cc
sha1.h
tarstore.cc
tarstore.h