sendfile data corruption

Pawel Worach pawel.worach at gmail.com
Fri Nov 10 19:33:05 PST 2006


Joe Marcus Clarke wrote:
> 
> Looks to me like there's some unnecessary calculations happening to get
> the xfsize.  Does the following patch help?
> 
> http://www.marcuscom.com/downloads/uipc_syscalls.c.diff
> 

Jumped the gun a bit there, worked well for small files but failed on 
bigger ones.

0>root at zero /usr/local/www/data# md5 sh
MD5 (sh) = e090ae9fc697b6ec84165af920034dc4
0>root at zero /usr/local/www/data# fetch -o - http://127.0.0.1/sh | md5
-                                             100% of  109 kB   57 MBps
e090ae9fc697b6ec84165af920034dc4

0>root at zero /usr/local/www/data# md5 pkg.tar
MD5 (pkg.tar) = 4acc148ebde3f491141950cf902b2d49
0>root at zero /usr/local/www/data# fetch -o - http://127.0.0.1/pkg.tar | md5
-                                             100% of  362 MB   67 MBps
98018da64b1fd111beaef8d990438604

ps. This is now back on latest -current with Joe's patch.

-- 
Pawel


More information about the freebsd-current mailing list