> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Bill Hastings > Sent: Thursday, March 08, 2012 2:36 PM > To: [email protected] > 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 > [email protected] > http://lists.wpkg.org/mailman/listinfo/sheepdog -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
