<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div>i think you say about lustre 1.8 ptlrpc API ?<div>look into ldlm_cli_convert, that good example of using that API.</div><div>for first you must declare sending buffer via ptlrpc_prep_req,</div><div>second, you must declare reply buffer via ptlrpc_req_set_repsize,</div><div>if you want synchronous request processing you should use ptlrpc_queue_wait,</div><div>if you want async request processing, use should assing async completion callback and add into ptlrpcd processing queue via ptlrpcd_add_req.</div><div><br></div><div><br></div><div><div><div>On Aug 12, 2010, at 23:48, Vilobh Meshram wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font style="color: rgb(51, 51, 255);" color="#3333ff" size="2"><font face="times new roman,serif"></font></font><font style="color: rgb(51, 51, 255);" color="#3333ff" size="2"><font face="times new roman,serif"><br><span style="font-family: trebuchet ms,sans-serif;">I want to understand the message encoding and decoding logic in Lustre.I am planning to send the lustre_msg 
(lustre_msg_v2) in the ptlrpc_request with some additional fields to the server (MDS). But when I add those fields I 
was not able to see their values at the Server end i.e MDS.For example say we now have 8 values + the variable size buffer which might be able to include the additional entries.So I want to add some additional entries to the variable part of the message.</span><br style="font-family: trebuchet ms,sans-serif;">


<br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">If you can please give me some insight on the way the Lustre File 
system encodes decodes the messages sent accross nodes it would be 
helpful.I have traced down the following code path  and see that </span></font></font><font style="color: rgb(51, 51, 255);" color="#3333ff" size="2"><font face="times new roman,serif"><span style="font-family: trebuchet ms,sans-serif;">inorder to send the message we need only three steps :-</span><br style="font-family: trebuchet ms,sans-serif;">

<span style="font-family: trebuchet ms,sans-serif;">ptlrpc_prep_req</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">ptlrpc_req_set_repsize</span><br style="font-family: trebuchet ms,sans-serif;">

<span style="font-family: trebuchet ms,sans-serif;">ptlrpc_queue_wait</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">Do I need to take into consideration any other things ?</span><br style="font-family: trebuchet ms,sans-serif;">

<span style="font-family: trebuchet ms,sans-serif;">Any help in this regard will be highly useful.</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">Thanks,</span><br style="font-family: trebuchet ms,sans-serif;">

<span style="font-family: trebuchet ms,sans-serif;">Vilobh</span><br clear="all">
</font></font>
_______________________________________________<br>Lustre-discuss mailing list<br><a href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>http://lists.lustre.org/mailman/listinfo/lustre-discuss<br></blockquote></div><br></div></body></html>