[Sheepdog] key used for consistent hashing
huxinwei
huxinwei at huawei.com
Thu Mar 8 08:01:02 CET 2012
> -----Original Message-----
> From: sheepdog-bounces at lists.wpkg.org
> [mailto:sheepdog-bounces at lists.wpkg.org] On Behalf Of Bill Hastings
> Sent: Thursday, March 08, 2012 2:36 PM
> To: sheepdog at lists.wpkg.org
> Subject: [Sheepdog] key used for consistent hashing
>
> A very simple question as I am new to Sheepdog. Let us say I have a
> virtual disk "A" of size 16GB. What is used as the "key" for the
> consistent hash scheme when I want to write say 64 bytes at offset
> 4096?
Yes, the writing request can be mapped to a object.
And obj_to_sheep uses fnv_64a_buf to calculate the hash value.
So, I guess you are asking for this:
include/sheepdog_proto.h:#define FNV1A_64_INIT ((uint64_t) 0xcbf29ce484222325ULL)
Hope this helps.
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list