<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Vilobh,<div><br></div><div>ldlm_cli_cancel_req is good example to use old PtlRPC API.</div><div>for first you need allocate request buffer via ptlrpc_prep_req</div><div>next is - allocate reply buffer via ptlrpc_req_set_repsize</div><div>next - call ptlrpc_queue_wait to send message and wait reply.</div><div><br></div><div>osc_getattr_async good example for new PtlRPC API and async RPC processing.</div><div><br></div><div>if that isn't help you - please show a yours code to find a error.</div><div><br><div><div>On Oct 12, 2010, at 20:55, Vilobh Meshram wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font style="color: rgb(51, 51, 255);" size="2" color="#3333ff"><font face="times new roman,serif">I
want to understand the message encoding and decoding logic in lustre.I
am planning to send a request to the MDS and based on the reply from MDs want to populate the <br><br>   struct lustre_msg *rq_repbuf; /* client only, buf may be bigger than msg */<br>   struct lustre_msg *rq_repmsg;<br>

<br>I am trying this for a simple "Hello" message but not seeing the expected output.Sometime I even see Kernel Crash.<br>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.</font></font><font style="color: rgb(51, 51, 255);" size="2"><br><br clear="all"></font><font style="color: rgb(51, 51, 255);" size="2" color="#3333ff"><font face="'times new roman', serif">Thanks,<br>Vilobh<br>

</font></font><i><font style="color: rgb(51, 51, 255);" size="2">Graduate Research Associate<br>Department of Computer Science<br>The Ohio State University Columbus Ohio</font></i><br>
_______________________________________________<br>Lustre-devel mailing list<br><a href="mailto:Lustre-devel@lists.lustre.org">Lustre-devel@lists.lustre.org</a><br>http://lists.lustre.org/mailman/listinfo/lustre-devel<br></blockquote></div><br></div></body></html>