Date: Thu, 8 Apr 2004 12:10:17 -0700 (PDT) From: "Alex Wang" <alex@alexwang.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/65300: Can't use sendfile(2) to download files in UDF DVD Message-ID: <200404081910.i38JAH0A094429@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/65300; it has been noted by GNATS. From: "Alex Wang" <alex@alexwang.com> To: <freebsd-gnats-submit@FreeBSD.org>, "ALEX" <alex@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404081910.i38JAH0A094429>