libglusterfsclient: fix libgf_client_read to handle short reads
libglusterfsclient: fix libgf_client_read to handle short reads

Fixes two issues in the current code
-short reads (reading larger than file size) result in failure of full read
-reads which span multiple iterations return with the op_ret of only
   the last read

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 334 (glusterfs_read/readv should break large-reads into 128Kb block sizes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=334

Kaushikbv/Gluster,Kaushikbv/Gluster,Kaushikbv/Gluster