<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"><<a href="mailto:ppai@redhat.com" target="_blank">ppai@redhat.com</a>></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 'trusted.glusterfs.quota.size.xx' from a auxiliary mount point.<br></div><div>As of now quota 'list/list-objects' 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="">
> Commands supported for 'Object Quotas'<br>
> # volume quota <VOLNAME> {limit-objects <path> <number> [<percent>]}<br>
> # volume quota <VOLNAME> list-objects [<path>]<br>
> # volume quota <VOLNAME> remove-objects <path><br>
<br>
</span>The command "list-objects" and "remove-objects" is confusing. What it really does is something like "list-object-limit" and "remove-object-limit".<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>