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