def list_quota_volume(name):
 cmd = 'volume quota {0}'.format(name)
 cmd += ' list'
 root = _gluster_xml(cmd)
 if (not _gluster_ok(root)):
  return None
 ret = {}
 for limit in _iter(root, 'limit'):
  path = limit.find('path').text
  ret[path] = _etree_to_dict(limit)
 return ret

def list_quota_volume ( name ) : cmd = 'volume quota {0}' . format ( name ) cmd += ' list' root = _gluster_xml ( cmd ) if ( not _gluster_ok ( root ) ) : return None ret = { } for limit in _iter ( root , 'limit' ) : path = limit . find ( 'path' ) . text ret [ path ] = _etree_to_dict ( limit ) return ret
list quotas of glusterfs volume .