index-pack: Loop over pread until data loading is complete.
commita91d49cd369ac5fc8e1a17357a975d09cf6c8cb3
authorShawn O. Pearce <spearce@spearce.org>
Wed, 28 Feb 2007 04:47:19 +0000 (27 23:47 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Feb 2007 05:58:46 +0000 (27 21:58 -0800)
treea9118b5ee5a5b457ef95902a34044d73a5a9b21e
parentae648606220c55074dfa12d1a11f60e62a7254ac
index-pack: Loop over pread until data loading is complete.

A filesystem might not be able to completely supply our pread
request in one system call, such as if we are reading data from a
network file system and the requested length is just simply huge.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c