[Gluster-devel] Determine volume size and usage

Shyamsundar Ranganathan srangana at redhat.com
Fri Nov 22 04:42:20 UTC 2013

----- Original Message -----
> From: "Brad Childs" <bdc at redhat.com>
> To: gluster-devel at nongnu.org
> Sent: Friday, November 22, 2013 12:19:22 AM
> Subject: [Gluster-devel] Determine volume size and usage
> How can I figure out the total space and used space (or free space) on a
> Gluster Volume?  The 'df' command returns a value for mounted volumes, so
> its go to be available somewhere. But I don't want to FUSE mount the volume
> just to figure out its size.
> Bonus points if this can be done through libgfapi.

glfs_statvfs should help from a libgfapi perspective. Returns statvfs buffer with relevant data (man 3 statvfs)


> -bc
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> https://lists.nongnu.org/mailman/listinfo/gluster-devel

More information about the Gluster-devel mailing list