<div dir="ltr"><br><div><br></div><div>From snapview client perspective one important thing to note. For building the context for the entry point (by default &quot;.snaps&quot;) a explicit lookup has to be done on it. The dentry for &quot;.snaps&quot; is not returned when readdir is done on its parent directory (Not even when ls -a is done). So for building the context of .snaps (in the context snapview client saves the information about whether it is a real inode or virtual inode) we need a lookup. </div><div><br></div><div>From snapview server perspective as well a lookup might be needed. In snapview server a glfs handle is established between the snapview server and the snapshot brick. So a inode in snapview server process contains the glfs handle for the object being accessed from snapshot.  In snapview server readdirp does not build the inode context (which contains the glfs handle etc) because glfs handle is returned only in lookup.</div><div><br></div><div>Regards,</div><div>Raghavendra</div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 12:53 AM, Raghavendra Gowdappa <span dir="ltr">&lt;<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Raghavendra G&quot; &lt;<a href="mailto:raghavendra.hg@gmail.com">raghavendra.hg@gmail.com</a>&gt;<br>
&gt; To: &quot;Nithya Balachandran&quot; &lt;<a href="mailto:nbalacha@redhat.com">nbalacha@redhat.com</a>&gt;<br>
&gt; Cc: &quot;Raghavendra Gowdappa&quot; &lt;<a href="mailto:rgowdapp@redhat.com">rgowdapp@redhat.com</a>&gt;, <a href="mailto:anoopcs@redhat.com">anoopcs@redhat.com</a>, &quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a>&gt;,<br>
&gt; <a href="mailto:raghavendra@redhat.com">raghavendra@redhat.com</a><br>
&gt; Sent: Tuesday, August 29, 2017 8:52:28 AM<br>
&gt; Subject: Re: [Gluster-devel] Need inputs on patch #17985<br>
&gt;<br>
&gt; On Thu, Aug 24, 2017 at 2:53 PM, Nithya Balachandran &lt;<a href="mailto:nbalacha@redhat.com">nbalacha@redhat.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; It has been a while but iirc snapview client (loaded abt dht/tier etc) had<br>
&gt; &gt; some issues when we ran tiering tests. Rafi might have more info on this -<br>
&gt; &gt; basically it was expecting to find the inode_ctx populated but it was not.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Thanks Nithya. @Rafi, @Raghavendra Bhat, is it possible to take the<br>
&gt; ownership of,<br>
&gt;<br>
&gt; * Identifying whether the patch in question causes the issue?<br>
<br>
</span>gf_svc_readdirp_cbk is setting relevant state in inode [1]. I quickly checked whether its the same state stored by gf_svc_lookup_cbk and it looks like the same state. So, I guess readdirp is handled correctly by snapview-client and an explicit lookup is not required. But, will wait for inputs from rabhat and rafi.<br>
<br>
[1] <a href="https://github.com/gluster/glusterfs/blob/master/xlators/features/snapview-client/src/snapview-client.c#L1962" rel="noreferrer" target="_blank">https://github.com/gluster/<wbr>glusterfs/blob/master/xlators/<wbr>features/snapview-client/src/<wbr>snapview-client.c#L1962</a><br>
<div><div class="h5"><br>
&gt; * Send a fix or at least evaluate whether a fix is possible.<br>
&gt;<br>
&gt; @Others,<br>
&gt;<br>
&gt; With the motivation of getting some traction on this, Is it ok if we:<br>
&gt; * Set a deadline of around 15 days to complete the review (or testing with<br>
&gt; the patch in question) of respective components and to come up with issues<br>
&gt; (if any).<br>
&gt; * Post the deadline, if there are no open issues, go ahead and merge the<br>
&gt; patch?<br>
&gt;<br>
&gt; If time is not enough, let us know and we can come up with a reasonable<br>
&gt; time.<br>
&gt;<br>
&gt; regards,<br>
&gt; Raghavendra<br>
&gt;<br>
&gt;<br>
&gt; &gt; On 24 August 2017 at 10:13, Raghavendra G &lt;<a href="mailto:raghavendra.hg@gmail.com">raghavendra.hg@gmail.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Note that we need to consider xlators on brick stack too. I&#39;ve added<br>
&gt; &gt;&gt; maintainers/peers of xlators on brick stack. Please explicitly ack/nack<br>
&gt; &gt;&gt; whether this patch affects your component.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For reference, following are the xlators loaded in brick stack<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; storage/posix<br>
&gt; &gt;&gt; features/trash<br>
&gt; &gt;&gt; features/changetimerecorder<br>
&gt; &gt;&gt; features/changelog<br>
&gt; &gt;&gt; features/bitrot-stub<br>
&gt; &gt;&gt; features/access-control<br>
&gt; &gt;&gt; features/locks<br>
&gt; &gt;&gt; features/worm<br>
&gt; &gt;&gt; features/read-only<br>
&gt; &gt;&gt; features/leases<br>
&gt; &gt;&gt; features/upcall<br>
&gt; &gt;&gt; performance/io-threads<br>
&gt; &gt;&gt; features/selinux<br>
&gt; &gt;&gt; features/marker<br>
&gt; &gt;&gt; features/barrier<br>
&gt; &gt;&gt; features/index<br>
&gt; &gt;&gt; features/quota<br>
&gt; &gt;&gt; debug/io-stats<br>
&gt; &gt;&gt; performance/decompounder<br>
&gt; &gt;&gt; protocol/server<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For those not following this thread, the question we need to answer is,<br>
&gt; &gt;&gt; &quot;whether the xlator you are associated with works fine if a non-lookup<br>
&gt; &gt;&gt; fop (like open, setattr, stat etc) hits it without a lookup ever being<br>
&gt; &gt;&gt; done<br>
&gt; &gt;&gt; on that inode&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; regards,<br>
&gt; &gt;&gt; Raghavendra<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Wed, Aug 23, 2017 at 11:56 AM, Raghavendra Gowdappa &lt;<br>
&gt; &gt;&gt; <a href="mailto:rgowdapp@redhat.com">rgowdapp@redhat.com</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; Thanks Pranith and Ashish for your inputs.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; ----- Original Message -----<br>
&gt; &gt;&gt;&gt; &gt; From: &quot;Pranith Kumar Karampuri&quot; &lt;<a href="mailto:pkarampu@redhat.com">pkarampu@redhat.com</a>&gt;<br>
&gt; &gt;&gt;&gt; &gt; To: &quot;Ashish Pandey&quot; &lt;<a href="mailto:aspandey@redhat.com">aspandey@redhat.com</a>&gt;<br>
&gt; &gt;&gt;&gt; &gt; Cc: &quot;Raghavendra Gowdappa&quot; &lt;<a href="mailto:rgowdapp@redhat.com">rgowdapp@redhat.com</a>&gt;, &quot;Xavier Hernandez&quot; &lt;<br>
&gt; &gt;&gt;&gt; <a href="mailto:xhernandez@datalab.es">xhernandez@datalab.es</a>&gt;, &quot;Gluster Devel&quot;<br>
&gt; &gt;&gt;&gt; &gt; &lt;<a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a>&gt;<br>
&gt; &gt;&gt;&gt; &gt; Sent: Wednesday, August 23, 2017 11:55:19 AM<br>
&gt; &gt;&gt;&gt; &gt; Subject: Re: Need inputs on patch #17985<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; Raghavendra,<br>
&gt; &gt;&gt;&gt; &gt;     As Ashish mentioned, there aren&#39;t any known problems if upper<br>
&gt; &gt;&gt;&gt; xlators<br>
&gt; &gt;&gt;&gt; &gt; don&#39;t send lookups in EC at the moment.<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; On Wed, Aug 23, 2017 at 9:07 AM, Ashish Pandey &lt;<a href="mailto:aspandey@redhat.com">aspandey@redhat.com</a>&gt;<br>
&gt; &gt;&gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; Raghvendra,<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; I have provided my comment on this patch.<br>
&gt; &gt;&gt;&gt; &gt; &gt; I think EC will not have any issue with this approach.<br>
&gt; &gt;&gt;&gt; &gt; &gt; However, I would welcome comments from Xavi and Pranith too for any<br>
&gt; &gt;&gt;&gt; side<br>
&gt; &gt;&gt;&gt; &gt; &gt; effects which I may not be able to foresee.<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; Ashish<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; ------------------------------<br>
&gt; &gt;&gt;&gt; &gt; &gt; *From: *&quot;Raghavendra Gowdappa&quot; &lt;<a href="mailto:rgowdapp@redhat.com">rgowdapp@redhat.com</a>&gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; *To: *&quot;Ashish Pandey&quot; &lt;<a href="mailto:aspandey@redhat.com">aspandey@redhat.com</a>&gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; *Cc: *&quot;Pranith Kumar Karampuri&quot; &lt;<a href="mailto:pkarampu@redhat.com">pkarampu@redhat.com</a>&gt;, &quot;Xavier<br>
&gt; &gt;&gt;&gt; Hernandez&quot;<br>
&gt; &gt;&gt;&gt; &gt; &gt; &lt;<a href="mailto:xhernandez@datalab.es">xhernandez@datalab.es</a>&gt;, &quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a>&gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; *Sent: *Wednesday, August 23, 2017 8:29:48 AM<br>
&gt; &gt;&gt;&gt; &gt; &gt; *Subject: *Need inputs on patch #17985<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; Hi Ashish,<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; Following are the blockers for making a decision on whether patch<br>
&gt; &gt;&gt;&gt; [1] can<br>
&gt; &gt;&gt;&gt; &gt; &gt; be merged or not:<br>
&gt; &gt;&gt;&gt; &gt; &gt; * Evaluation of dentry operations (like rename etc) in dht<br>
&gt; &gt;&gt;&gt; &gt; &gt; * Whether EC works fine if a non-lookup fop (like open(dir), stat,<br>
&gt; &gt;&gt;&gt; chmod<br>
&gt; &gt;&gt;&gt; &gt; &gt; etc) hits EC without a single lookup performed on file/inode<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; Can you please comment on the patch? I&#39;ll take care of dht part.<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; [1] <a href="https://review.gluster.org/#/c/17985/" rel="noreferrer" target="_blank">https://review.gluster.org/#/<wbr>c/17985/</a><br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt; regards,<br>
&gt; &gt;&gt;&gt; &gt; &gt; Raghavendra<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; --<br>
&gt; &gt;&gt;&gt; &gt; Pranith<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; ______________________________<wbr>_________________<br>
&gt; &gt;&gt;&gt; Gluster-devel mailing list<br>
&gt; &gt;&gt;&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt;&gt;&gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; --<br>
&gt; &gt;&gt;&gt; Raghavendra G<br>
&gt; &gt;&gt;&gt;<br>
</div></div>&gt; &gt;&gt;&gt; &lt;<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><wbr>&gt;<br>
<div class="HOEnZb"><div class="h5">&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ______________________________<wbr>_________________<br>
&gt; &gt;&gt; Gluster-devel mailing list<br>
&gt; &gt;&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt;&gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Raghavendra G<br>
&gt;<br>
</div></div></blockquote></div><br></div>