Optimization with sendfile

Andrew Bartlett abartlet at samba.org
Wed Sep 6 20:47:38 GMT 2006


On Wed, 2006-09-06 at 10:14 -0700, Jeremy Allison wrote:
> On Wed, Sep 06, 2006 at 01:01:13PM -0400, William Jojo wrote:
> > 
> > ----- Original Message ----- 
> > From: "Jeremy Allison" <jra at samba.org>
> > To: "Shlomi Yaakobovich" <Shlomi at exanet.com>
> > Cc: <samba-technical at lists.samba.org>
> > Sent: Wednesday, September 06, 2006 11:56 AM
> > Subject: Re: Optimization with sendfile
> > 
> > 
> > >
> > > Failing the sendfile is correct here. This is essentially "what
> > > Windows does". Note we only use sendfile if the file was oplocked.
> > >
> > 
> > I don't think oplocks are needed for sendfile. Something about Tridge and a
> > train... :-)
> 
> Yes I remember that too, but can't remember the details :-)

The details as related to me were that if the file is truncated, windows
just sends zeros, so we don't need to check anyway.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060907/a95d5494/attachment.bin


More information about the samba-technical mailing list