Function gluster::get_quota_usage [] [src]

pub fn get_quota_usage(volume: &str) -> Result<u64, GlusterError>

Returns a u64 representing the bytes used on the volume. Note: This uses my brand new RPC library. Some bugs may exist so use caution. This does not shell out and therefore should be significantly faster. It also suffers far less hang conditions than the CLI version.

Failures

Will return GlusterError if the RPC fails