Using md5 sum of file contents as key

Justin Azoff JAzoff at uamail.albany.edu
Fri Apr 18 17:35:11 UTC 2008


On Tue, 2008-04-15 at 12:30 +0100, Ian Sherratt wrote:
> Heya,
> 
[...]
> We're considering using mogilefs as a storage solution, using a md5 sum (or 
> SHA-xx) of the file's contents as the key.  This key would be stored by each 
> application in their own databases along with all the metainformation which 
> is application dependent.
[...]
> Has any body used a function of the file contents as the key before?  Good 
> idea/bad idea?

Storing the checksum of the file also lets you verify the files
contents.

If mogilefs did this automatically, it could easily have a 'scrub'
feature in addition to fsck.

-- 
-- Justin Azoff
-- Network Performance Analyst


More information about the mogilefs mailing list