<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 26, 2015 at 10:25 AM, Prashanth Pai <span dir="ltr">&lt;<a href="mailto:ppai@redhat.com" target="_blank">ppai@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
&gt; We have sent an upstream patch[1] that enhances the list command by showing<br>
&gt; used space in case of &#39;gluster v quota &lt;VOLNAME&gt; list &lt;path&gt;&#39; and shows<br>
&gt; &#39;dir_count,file_count&#39; with gluster v quota &lt;VOLNAME&gt; list-objects &lt;path&gt;&#39;<br>
&gt; command even when quota limit is not set(But quota/inode-quota should be<br>
&gt; configured for the first time).<br>
<br>
</span>Would enabling quota for the volume be enough ? For an existing volume with data, When are the xattrs populated ?<br></blockquote><div>Yes, enabling quota for a volume will be enough. </div><div>When quota is enabled on existing data, back-end quota-crawl process is initiated to set the xattrs. This process can take from secs to few hours to complete the task, depending on the number of files present in the volume.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
&gt;<br>
&gt; [1] <a href="http://review.gluster.org/#/c/12741/" rel="noreferrer" target="_blank">http://review.gluster.org/#/c/12741/</a><br>
<br>
Cool, thanks.<br>
<span class=""><br>
&gt;<br>
&gt; &gt; &gt; Commands supported for &#39;Object Quotas&#39;<br>
&gt; &gt; &gt; # volume quota &lt;VOLNAME&gt; {limit-objects &lt;path&gt; &lt;number&gt; [&lt;percent&gt;]}<br>
&gt; &gt; &gt; # volume quota &lt;VOLNAME&gt; list-objects [&lt;path&gt;]<br>
&gt; &gt; &gt; # volume quota &lt;VOLNAME&gt; remove-objects &lt;path&gt;<br>
&gt;<br>
&gt; &gt; The command &quot;list-objects&quot; and &quot;remove-objects&quot; is confusing. What it<br>
&gt; &gt; really does is something like &quot;list-object-limit&quot; and<br>
&gt; &gt; &quot;remove-object-limit&quot;.<br>
&gt;<br>
&gt; &gt; Yes, list-objects is to list the count, remove-objects is to remove the<br>
&gt; &gt; object limit set<br>
<br>
</span>Can this be changed too ? From &quot;list-objects&quot; and &quot;remove-objects&quot; to &quot;list-object-limit&quot; and &quot;remove-object-limit&quot;.<br></blockquote><div>As part of patch submitted #12741, list-objects now will list the quota usage count even if limit is not set, so list-object-limit may not be the right command.</div><div>Yes, remove-objects can be changed to remove-object-limit  </div><div><br></div><div><div>Thanks,</div><div>Vijay</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thanks.<br>
<div class=""><div class="h5">_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
</div></div></blockquote></div><br></div></div>