<HTML><HEAD><TITLE>Mail</TITLE>
<META content="KsDHTMLEDLib.ocx, FreeWare HTML Editor 1.164.2, ?Kurt Senfer"
name=GENERATOR>
<META http-equiv=Content-Type content="text/html; charset=GB2312"></HEAD>
<BODY style="FONT-SIZE: 9pt; FONT-FAMILY: ËÎÌå" leftMargin=5 topMargin=5>
<DIV> <BR><BR> I found in the database,the length of key/value pairs
of inode information usually larger than what it should be,about 10 bytes.What
had happened to them?</DIV>
<DIV>mpz_get_raw appeared often.What is it?Is it the reason of the '10
bytes'?</DIV>
<DIV>In the file 'adbd.c',I tried to modify the function 'lookup'.In my
imagination,</DIV>
<DIV><EM><FONT size=2>int
<BR>dbns::lookup (const chordID &key, str &data)
<BR>{ <BR> int r = 0;
<BR><BR> str key_str = id_to_str (key);
<BR> DBT skey;
<BR> str_to_dbt (key_str, &skey);
<BR><BR> DBT content;
<BR> bzero (&content, sizeof (content));
<BR><BR> // Implicit transaction
<BR> r = datadb->get (datadb, NULL, &skey, &content, 0);
<BR> if (r) {
<BR> if (r != DB_NOTFOUND)
<BR> warner ("dbns::fetch", "get error", r);
<BR> return r; <BR> }
<BR> data.setbuf ((const char *) (content.data), content.size);
<BR> return 0;}</FONT></EM></DIV>
<DIV><FONT size=2>the DBT structure 'content' is the content of inode data.But I
wanted to modity the content.data as a string,then give the changed value to the
str data.The final result I wanted to get in filestore -f.(I store only inode
information.)But the chord told me not found in the vnode where it should
be.However,I used dbdump,the pair is there.(And before I modify the adbd.c,I can
get the inode information via filestore -f.Of course, I changed the structure of
inode.)Could you please tell me why?</FONT></DIV>
<DIV><FONT size=2>Is the information stored to disk encrypted?</FONT></DIV>
<DIV> <FONT
size=2>Yours,Zhou Kun</FONT></DIV>
<DIV> 2007-3-27 09:50:58</DIV></BODY></HTML>