Whamcloud - gitweb
LU-6389 utils: fix lustre_rsync read retry
The read() syscall could return less than the amount of data
requested. Retry the read call until all data is read or an
error is returned.
Even though Lustre will retry the short read internally, the
code may as well be written correctly.
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I712969c4f920b53fa6dc27ddcb968cb82df88a44
Reviewed-on: http://review.whamcloud.com/18275
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>