[Sheepdog] Sheepdog 0.3.0 schedule and 0.4.0 plan
Yibin Shen
zituan at taobao.com
Tue Nov 15 11:55:00 CET 2011
On Tue, Nov 15, 2011 at 6:49 PM, Liu Yuan <namei.unix at gmail.com> wrote:
> On 11/15/2011 06:34 PM, Yibin Shen wrote:
>
>> On Tue, Nov 15, 2011 at 6:16 PM, MORITA Kazutaka
>> <morita.kazutaka at lab.ntt.co.jp> wrote:
>>> At Tue, 15 Nov 2011 10:25:41 +0800,
>>> Yibin Shen wrote:
>>>>
>>>> Hi, kuzum:
>>>>
>>>> We wish to add other three features in 0.4.0 merge window,
>>>>
>>>> 1. object's R/W checksum support(which will be optional) for sheep I/O
>>>> subsystem.
>>>
>>> How to store the checksum? Will this feature be implemented on Yuan's
>>> "farm"?
>> we will create a checksum file for each object, and named with object
>> name plus a suffix,
>> hmm, maybe this is conflicted with "farm" project, I will talked it with Yuan.
>
> Not at all. Farm doesn't do with raw object. You can play with it on
> farm as it is right now. But if we need checksum it, maybe we can create
> a header for object.
>
I don't think it's a good choice , that will make object hard to "decode"
> |header|data...|
>
> write(oid, buf, size)
> {
> sha1 = get_sha1(buf, size);
> init_hdr(sha1, size)
> insert(buf, &hdr);
> write_object(odi, buf, size);
> }
>
> read(oid, buf, size)
> {
> sha1 = get_sha1(read_file(oid), size, &hdr);
> verify_sha1(sha1, hdr.sha1);
> ....
> }
>
> Thanks,
> Yuan
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog
>
________________________________
This email (including any attachments) is confidential and may be legally privileged. If you received this email in error, please delete it immediately and do not copy it or use it for any purpose or disclose its contents to any other person. Thank you.
本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。
More information about the sheepdog
mailing list