<div dir="ltr">Hi Prashanth,<div><br></div><div>Thank you for the feedback, please find my comments inline.<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 24, 2015 at 10:23 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">It would be good to expose the object count (dir and file separate) to client via a virtual xattr. I have a use-case to know the number of files without even having to set/use quota.<br>
<span class=""><br></span></blockquote><div>If quota is enabled, you can get this data by doing getxattr &#39;trusted.glusterfs.quota.size.xx&#39; from a auxiliary mount point.<br></div><div>As of now quota &#39;list/list-objects&#39; will list the usage only if limit is set. We will enhance this command to list the usage even if quota limit is not set, I have file a bug for the same bug# 1284752.</div><div>You can get this data in xml format as well<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"><span class="">
&gt; Commands supported for &#39;Object Quotas&#39;<br>
&gt; # volume quota &lt;VOLNAME&gt; {limit-objects &lt;path&gt; &lt;number&gt; [&lt;percent&gt;]}<br>
&gt; # volume quota &lt;VOLNAME&gt; list-objects [&lt;path&gt;]<br>
&gt; # volume quota &lt;VOLNAME&gt; remove-objects &lt;path&gt;<br>
<br>
</span>The command &quot;list-objects&quot; and &quot;remove-objects&quot; is confusing. What it really does is something like &quot;list-object-limit&quot; and &quot;remove-object-limit&quot;.<br>
<br></blockquote><div>Yes, list-objects is to list the count, remove-objects is to remove the object limit set</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">
Thanks.<br>
</blockquote></div><br></div></div></div>