using splice system call in smbd

Jeremy Allison jra at samba.org
Thu Dec 14 17:33:33 GMT 2006


On Thu, Dec 14, 2006 at 11:06:12AM -0500, korann wrote:
> An article with better high-level explanation is available at: 
> http://kerneltrap.org/node/6505  Another shorter description but with 
> more history and references is included in the description of 2.6.17: 
> http://kernelnewbies.org/Linux_2_6_17

Ok, this is interesting. The problem is it will change the
upper layer read policies on a SMBwriteX call. That's not
impossible, just fiddly. What we'd have to do is after
first reading the NB header, decide if it's a write call
by looking at the incoming data length - a safe bet is
anything longer than 8k is a write. At that point we
have to treat the SMBwriteX differently - read the header,
parse and handle the args and then do the tee call.

Might be worth coding up as a test/fast path implementation.

Won't work with smb signing turned on of course.

Jeremy.


More information about the samba-technical mailing list