<div dir="ltr">Hi Rudra,<div><br></div><div>The inode and inode table data structures here represent the in-memory inode</div><div>on the client side.(gfapi)</div><div><br></div><div>When we are trying to create a new file, it becomes<br></div><div>*necessary* that we confirm with the backend if it can be created, hence </div><div>a force lookup.</div><div><br></div><div>Only case where we avoid a force lookup is when in-memory inode is<br></div><div>present(means we had resolved this recently and have all the stat data)</div><div>and it is not the last component in the path. Say &quot;b&quot; in the path &quot;/a/b/c&quot;.</div><div><br></div><div>Please do tell if that does not clarify your question.<br></div><div><br></div><div>Raghavendra Talur</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 21, 2014 at 5:50 PM, Rudra Siva <span dir="ltr">&lt;<a href="mailto:rudrasiva11@gmail.com" target="_blank">rudrasiva11@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">Hi,<br>
<br>
A new file create does not honour the force lookup avoidance - in my<br>
case I am not interested in the attributes or forcing a lookup, just<br>
need the inode details - is there a specific reason why !force_lookup<br>
is not outside the block?<br>
<br>
<a href="https://github.com/gluster/glusterfs/blob/master/api/src/glfs-resolve.c" target="_blank">https://github.com/gluster/glusterfs/blob/master/api/src/glfs-resolve.c</a><br>
<br>
270:     if (!force_lookup) {<br>
<br>
suggested fix:<br>
<br>
move this to outside of if-else to line 296 - so it applies to<br>
existing as well as new files.<br>
<br>
Can someone explain what do the inode and inode table data structures represent?<br>
<span class="HOEnZb"><font color="#888888">--<br>
-Siva<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font color="#666666"><b>Raghavendra Talur </b></font><div><br></div></div></div>
</div>