Store sendfile capability per-fsp.
authorJames Peach <jpeach@apple.com>
Mon, 15 Oct 2007 21:38:33 +0000 (14:38 -0700)
committerJames Peach <jpeach@apple.com>
Mon, 15 Oct 2007 21:38:33 +0000 (14:38 -0700)
commitcc48f6f58ae38d41261e9835ab7199994910888a
tree050c740ae5f781c29a1416596d9a15eeebd9e1e3
parent55bf079402577657d2a11a5a22cd099ead07123d
Store sendfile capability per-fsp.

This patch adds a bit to the fsp structure to tell the network send
path whether this file data can safely be sent using the sendfile(2)
system call.

This is a useful facility for VFS authors, since sometimes a VFS
may need to present a non-file object as a file. In this case,
sendfile should not be used.
source/include/smb.h
source/modules/vfs_default.c
source/smbd/reply.c