Displaying 2 results from an estimated 2 matches for "lp_use_sendfil".
Did you mean:
lp_use_sendfile
2005 Jan 02
1
sendfile questions...
Why in smbd/reply.c does send_file_readX only use sendfile if write cache
size is 0?
<snip>
if (chain_size ==0 && (CVAL(inbuf,smb_vwv0) == 0xFF) && lp_use_sendfile(
SNUM(conn)) &&
(lp_write_cache_size(SNUM(conn)) == 0) ) {
</snip>
While its true send_file_readX works regardless of the state of oplocks
(which is cool!) the smb.conf.5 man page still indicates the file must be
exclusively oplocked.
I was researching why...
2003 Dec 01
0
No subject
...s));
}
#endif /* LARGE_SMB_OFF_T */
}
if (is_locked(fsp,conn,(SMB_BIG_UINT)smb_maxcnt,(SMB_BIG_UINT)startpos,
READ_LOCK)) {
END_PROFILE(SMBreadX);
return(ERROR(ERRDOS,ERRlock));
}
/* added sendfile support */
/*+++++++++++++++++++*/
smb_com2 = CVAL(inbuf,smb_vwv0);
if (lp_use_sendfile() && (smb_com2 == 0xFF))
{
/* here we use sendfile and we know we don't need to chain */
CVAL(outbuf, smb_vwv0) = 0xFF;
SSVAL(outbuf,smb_vwv5,smb_maxcnt);
SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf));
SSVAL(smb_buf(outbuf),-2,smb_maxcnt);
outsize = chain_...