[Gluster-users] Question about the quota xattrs

Vijaikumar M vmallika at redhat.com
Thu Jul 9 16:52:49 UTC 2015



On Thursday 09 July 2015 09:28 PM, chris holcombe wrote:
> I've noticed a difference in the trusted.glusterfs.quota.size field.  
> I am using this field instead of the quota list command because it's 
> super fast and doesn't hang occasionally like the command can.
>
> In 3.6 it looks like this:
> trusted.glusterfs.quota.size=0x0000000000000000
>
> In 3.7 it looks like this:
> trusted.glusterfs.quota.size=0x000000000000000000000000000000000000000000000003 
>
In 3.7 new feature 'object-quota' has been added.

First 64 bytes :   Total size as before
Second 64 bytes:   Total number of files including files under 
sub-directories
Third 64 bytes :   Total number of directories including directories 
under subdirectories

Thanks,
Vijay



>
> I dumped these fields with:
> getfattr -d -m . -e hex /mnt/brick1
>
> The field in 3.6 is easy to decode as a hex number.  In 3.7 however 
> the field appears to be too long or base64 encoded.  Does anyone know 
> what happened here?
>
> -Chris
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users



More information about the Gluster-users mailing list