Description of problem: The afr uses gfid based hashing which selects one of the available subvolumes for read operation[1]. If a similar api is written in gfapi, we can perform load balancing at libgfapi layer. Additional info: [1] afr_read_subvol_select_by_policy() in https://github.com/GlusterFS/glusterfs/blob/master/xlators/cluster/afr/src/afr-common.c
REVIEW: http://review.gluster.org/13402 (libgfapi : Provide an api to compute hash based on gfid) posted (#1) for review on master by jiffin tony Thottan (jthottan)
Patch got merged in upstream https://review.gerrithub.io/#/c/263180/