<div dir="ltr">Added people who know nfs code.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 16, 2016 at 6:21 PM, jin deng <span dir="ltr">&lt;<a href="mailto:cheneydeng88@gmail.com" target="_blank">cheneydeng88@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr"><span style="font-size:14px">Hi all,</span><div style="font-size:14px">    I&#39;m reading the code of 3.6.9 version and got a question.And I&#39;m not very familiar with the code,so I have to confirm it(I checked the master branch,it&#39;s same with 3.6.9).</div><div style="font-size:14px"><br></div><div style="font-size:14px">    The question is about the &#39;lookup&#39; operation of NFS.And i&#39;m with this code flow:</div><div style="font-size:14px"><br></div><div style="font-size:14px">    nfs3_lookup (nfs3.c) ==&gt; nfs3_fh_resolve_and_resume ==&gt; nfs3_fh_resolve_root ==&gt; nfs3_fh_resolve_resume ==&gt; nfs3_fh_resolve_entry ==&gt; nfs3_fh_resolve_entry_hard<wbr>.</div><div style="font-size:14px"><br></div><div style="font-size:14px">Now enter the &quot;nfs_entry_loc_fill&quot; and return with -1 which means the &quot;parent&quot; not found,so we have to do hard resolve about the parent. After doing a hard resolve,we get into the callback &quot;nfs3_fh_resolve_inode_lookup_<wbr>cbk&quot;.And the callback has the following code:</div><div style="font-size:14px"><br></div><div style="font-size:14px"><div>&gt;&gt;&gt; memcpy (&amp;cs-&gt;stbuf, buf, sizeof(*buf));</div><div>&gt;&gt;&gt; memcpy (&amp;cs-&gt;postparent, buf, sizeof(*postparent))</div></div><div style="font-size:14px"><br></div><div style="font-size:14px">I think we&#39;ve just done a parent resolve,how could we assign the parent result into the &quot;stbuf&quot; and &quot;postparent&quot;.The later two should be the information of the child file/directory.Do i made a misunderstand?</div><div style="font-size:14px"><br></div><div style="font-size:14px">Thanks advance for your help.</div></div>
</div></div><br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div>