[Gluster-devel] Object Quotas
Manikandan Selvaganesh
mselvaga at redhat.com
Wed Nov 25 10:11:43 UTC 2015
Hi Prashanth,
> Thank you for the feedback, please find my comments inline.
> On Tue, Nov 24, 2015 at 10:23 AM, Prashanth Pai < ppai at redhat.com > wrote:
> 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.
> If quota is enabled, you can get this data by doing getxattr 'trusted.glusterfs.quota.size.xx' from a auxiliary mount point.
> 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.
> You can get this data in xml format as well
We have sent an upstream patch[1] that enhances the list command by showing used space in case of 'gluster v quota <VOLNAME> list <path>' and shows 'dir_count,file_count' with gluster v quota <VOLNAME> list-objects <path>' command even when quota limit is not set(But quota/inode-quota should be configured for the first time).
[1] http://review.gluster.org/#/c/12741/
> > Commands supported for 'Object Quotas'
> > # volume quota <VOLNAME> {limit-objects <path> <number> [<percent>]}
> > # volume quota <VOLNAME> list-objects [<path>]
> > # volume quota <VOLNAME> remove-objects <path>
> The command "list-objects" and "remove-objects" is confusing. What it really does is something like "list-object-limit" and "remove-object-limit".
> Yes, list-objects is to list the count, remove-objects is to remove the object limit set
> Thanks.
Thank you :-)
--
Regards,
Manikandan Selvaganesh.
_______________________________________________
Gluster-devel mailing list
Gluster-devel at gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel
More information about the Gluster-devel
mailing list