[Patch] Segfault on unaligned lseek() on /dev/sdX (was: [ITP] ddrescue 1.3)

Christian Franke Christian.Franke@t-online.de
Sun May 20 15:02:00 GMT 2007

fhandler_dev_floppy::lseek() always clears the 60KB pre-read buffer, 
even on lseek(fd, 0, SEEK_CUR);
If a programm (like ddrescue) always calls lseek() before each read(), 
performance is poor, because the same block is read several times.

With this new version of the patch, the buffer is only cleared if necessary.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin-1.5.24-2-rawseek-3.patch.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20070520/df7011c0/attachment.txt>

More information about the Cygwin-patches mailing list