[darcs-devel] Filesystem in DB, but data in filesystem
Ben Coburn
btcoburn at silicodon.net
Mon Jul 30 09:22:37 PDT 2007
On Jul 30, 2007, at 05:52, Salvatore Insalaco wrote:
> 2007/7/30, Tommy Pettersson <ptp at lysator.liu.se>:
>
>>> However, we can do checksum if we want. Maybe a lightweight sha /
>>> md5
>>> like checksum in file index to prevent this from happening.
>>
>> That would be the ultimate and near-to-bullet-proof solution (if
>> we assume darcs' general lock file guarantee us "atomic"
>> operation on the cache).
>
> I've got another, more "lightweight" idea: let's just store file
> modification timestamp in file index.
>
> [...]
>
> We lose the "case-sensitivity-on-case-insensitive-fs" property, but
> again we gain in simplicity and probably performance (I wouldn't bet
> on this one).
>
The name stored in the index is case sensitive, so I don't think we
have to lose case sensitivity.
Regardless of how files are checksumed, I think the file index should
store a sha hash for itself so that we can confirm its integrity.
Regards, Ben Coburn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070730/92a1235b/attachment.html
More information about the darcs-devel
mailing list