[chord] how to store/fetch a string defined by user?

林珈 linjialj at gmail.com
Thu Apr 24 21:56:56 EDT 2008


Hi, Emil,
     I have implemented the chord,and  have a problem of storing and
fetching the string or int or some other datas which are defied by user.The
exact describtions are as below:
(1) tools/filestore /tmp/chord-sock -s a.txt 1

 len 11 inflight 0
 len 20
 p
 len 280
 55500ec09625b0a1749e75c4904c86c61b6890d1
 what's meaning of the orange lines?

(2) tools/filestore /tmp/chord-sock -l  hash 1

a.txt: 11 bytes
Can more infomations of the file be ouputted? Must we write the hash number
of the txt to fetch it?

(3)tools/filestore /tmp/chord-sock -f  1

retrieve 55500ec09625b0a1749e75c4904c86c61b6890d1
retrieve 9819e0555bb48476b2daf9f40d465bb521f5c2d9
retrieve 94d6bfdf53a0fd332fc2771d0f2e6ba5126f296

What's meaning of the three hash numbers?

(4)The dbm command :
tooles/dbm /dhash-1/dhash-sock store chash 2 8

I think the dbm created 2 keys ,and then stored them in chord. How to store
some datas defined by user with dbm?

Thank you for your time.
Looking forward to your replay.


Lin Jia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://pdos.csail.mit.edu/pipermail/chord/attachments/20080425/810574b0/attachment.htm 


More information about the chord mailing list