<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"><<a href="mailto:cheneydeng88@gmail.com" target="_blank">cheneydeng88@gmail.com</a>></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'm reading the code of 3.6.9 version and got a question.And I'm not very familiar with the code,so I have to confirm it(I checked the master branch,it's same with 3.6.9).</div><div style="font-size:14px"><br></div><div style="font-size:14px"> The question is about the 'lookup' operation of NFS.And i'm with this code flow:</div><div style="font-size:14px"><br></div><div style="font-size:14px"> nfs3_lookup (nfs3.c) ==> nfs3_fh_resolve_and_resume ==> nfs3_fh_resolve_root ==> nfs3_fh_resolve_resume ==> nfs3_fh_resolve_entry ==> nfs3_fh_resolve_entry_hard<wbr>.</div><div style="font-size:14px"><br></div><div style="font-size:14px">Now enter the "nfs_entry_loc_fill" and return with -1 which means the "parent" not found,so we have to do hard resolve about the parent. After doing a hard resolve,we get into the callback "nfs3_fh_resolve_inode_lookup_<wbr>cbk".And the callback has the following code:</div><div style="font-size:14px"><br></div><div style="font-size:14px"><div>>>> memcpy (&cs->stbuf, buf, sizeof(*buf));</div><div>>>> memcpy (&cs->postparent, buf, sizeof(*postparent))</div></div><div style="font-size:14px"><br></div><div style="font-size:14px">I think we've just done a parent resolve,how could we assign the parent result into the "stbuf" and "postparent".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>