<p dir="ltr">Hi All,</p>
<p dir="ltr">We have implemented a new feature 'Object quotas' in glusterfs-3.7, this feature is same like 'Usage quota' and accounts on the numbers of inodes.</p>
<p dir="ltr">The mechanism is to store count of objects (inodes: files/directories) as part of an extended attribute of a directory (same extended attribute used for usage quotas).</p>
<p dir="ltr">Each directory's extended attribute value will indicate the number of objects present in a tree with the directory being considered as the root of the tree.</p>
<p dir="ltr">Commands supported for 'Object Quotas'</p>
<p dir="ltr"># volume quota <VOLNAME> {limit-objects <path> <number> [<percent>]}</p>
<p dir="ltr"># volume quota <VOLNAME> list-objects [<path>]</p>
<p dir="ltr"># volume quota <VOLNAME> remove-objects <path></p>
<p dir="ltr">'Object Quota' will be enabled as part of 'gluster volume quota <VOLNAME> enable'. If the glusterfs is upgraded to 3.7 where is the quota is alreday enabled in the previous version before upgrade,</p>
<p dir="ltr">execute below command to enable 'Object Quota':</p>
<p dir="ltr">gluster volume inode-quota <VOLNAME> enable</p>
<p dir="ltr">Please provide your feedback.</p>
<p dir="ltr">Thanks,</p>
<p dir="ltr">Vijay</p>