Re: index-pack died on pread
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jul 26, 2007, 12:42 UTC
- Message-ID
- <81b0412b0707260542o58fcb73bu81ae09aa1df84c81@mail.gmail.com>
- In-Reply-To
- <alpine.LFD.0.999.0707251636490.3607@woody.linux-foundation.org>
On 7/26/07, Linus Torvalds <torvalds@linux-foundation.org> wrote:
Show 10 quoted lines
> On Thu, 26 Jul 2007, Robin Rosenberg wrote: > > > > Does cygwin have the same pread problem then.. ? after make NO_PREAD=1 with 1.5.2.4 > > clone works. > > Interesting. > > It's true that pread() is used much less than normal reads, and maybe the > cygwin pread() is indeed broken. But it's intriguing how apparently both > HP-UX and Cygwin are showing the same breakage.
Maybe because neither _has_ POSIX pread? This is cygwin's pread, I believe:
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_disk_file.cc?rev=1.225&content-type=text/x-cvsweb-markup&cvsroot=src
Windows has means to implement it natively, but the interface is so ugly (see OVERLAPPED, if interested), that it is no wonder Cygwin chose to just use lseek.