diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-18 20:36:50 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-18 20:36:50 +0000 |
commit | 7af9901fdb56ddf02c821064ccaeece7661c3b97 (patch) | |
tree | 2a3f06832c351964d6ef5758fdf417a59f2baa16 /source3/smbd/reply.c | |
parent | 994638f577d2d0df8f5f185fd96d4448dcd9d7e5 (diff) | |
download | samba-7af9901fdb56ddf02c821064ccaeece7661c3b97.tar.gz samba-7af9901fdb56ddf02c821064ccaeece7661c3b97.tar.bz2 samba-7af9901fdb56ddf02c821064ccaeece7661c3b97.zip |
Added "use sendfile" per share option.
Jeremy.
(This used to be commit 28466ff42c3328e49d46f7cddfc4bb2fe462d871)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index b8a89b1d9d..4c7d73bc6e 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1698,7 +1698,7 @@ int send_file_readX(connection_struct *conn, char *inbuf,char *outbuf,int length * that is exclusively oplocked. */ - if ((CVAL(inbuf,smb_vwv0) == 0xFF) && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) { + if ((CVAL(inbuf,smb_vwv0) == 0xFF) && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type) && lp_use_sendfile(SNUM(conn)) ) { SMB_STRUCT_STAT sbuf; DATA_BLOB header; |