kern/65300: Can't use sendfile(2) to download files in UDF DVD

Alex Wang alex at alexwang.com
Thu Apr 8 12:10:17 PDT 2004


The following reply was made to PR kern/65300; it has been noted by GNATS.

From: "Alex Wang" <alex at alexwang.com>
To: <freebsd-gnats-submit at FreeBSD.org>, "ALEX" <alex at alexwang.com>
Cc:  
Subject: Re: kern/65300: Can't use sendfile(2) to download files in UDF DVD
Date: Fri, 9 Apr 2004 03:06:33 +0800

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_002E_01C41DDF.A9B7BD00
 Content-Type: text/plain;
 	charset="big5"
 Content-Transfer-Encoding: quoted-printable
 
 I guess the reason is the sendfile(2) get page by the file vp and offset =
 but the udf_read gives bread() device vp and sector. So the bread can't =
 get the same page with sendfile().
 We should give bread file vp and offset. Then transfer into device vp =
 and logical block in udf_strategy.=20
 
 ------=_NextPart_000_002E_01C41DDF.A9B7BD00
 Content-Type: text/html;
 	charset="big5"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
 <META content=3D"MSHTML 6.00.2737.800" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>I guess the reason is the sendfile(2) =
 get page by=20
 the file vp and offset but the udf_read gives bread() device vp and =
 sector. So=20
 the bread can't get the same page with sendfile().</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>We should give bread file vp and =
 offset. Then=20
 transfer into device vp and logical block in udf_strategy.=20
 </FONT></DIV></BODY></HTML>
 
 ------=_NextPart_000_002E_01C41DDF.A9B7BD00--
 


More information about the freebsd-bugs mailing list