Re: Object Quotas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Prashanth, 

> Thank you for the feedback, please find my comments inline. 

> On Tue, Nov 24, 2015 at 10:23 AM, Prashanth Pai < ppai@xxxxxxxxxx > 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@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel

 

_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux