On Sat, Oct 05, 2002 at 08:36:32AM +0200, Simo Sorce wrote: > Have the problems of use of sendfile been solved some way? > What happen if there's an error while sending? (Like file changing size > after we sent the size in the header?)
We only turn it on if the file is exclusively oplocked with no write cache. It's only completely safe if the we have kernel oplocks, but if we get a short read we exit smbd with an error (which is all we can do) - the file is corrupted in that case. Jeremy.
