Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 13 23:47:07 CET 2010 on sn-devel-104
-#if defined(WITH_SENDFILE)
/****************************************************************************
Deal with the case of sendfile reading less bytes from the file than
requested. Fill with zeros (all we can do).
/****************************************************************************
Deal with the case of sendfile reading less bytes from the file than
requested. Fill with zeros (all we can do).
-#endif /* defined WITH_SENDFILE */
/****************************************************************************
Return a readbraw error (4 bytes of zero).
/****************************************************************************
Return a readbraw error (4 bytes of zero).
char *outbuf = NULL;
ssize_t ret=0;
char *outbuf = NULL;
ssize_t ret=0;
-#if defined(WITH_SENDFILE)
/*
* We can only use sendfile on a non-chained packet
* but we can use on a non-oplocked file. tridge proved this
/*
* We can only use sendfile on a non-chained packet
* but we can use on a non-oplocked file. tridge proved this
outbuf = TALLOC_ARRAY(NULL, char, nread+4);
if (!outbuf) {
outbuf = TALLOC_ARRAY(NULL, char, nread+4);
if (!outbuf) {
-#if defined(WITH_SENDFILE)
/*
* We can only use sendfile on a non-chained packet
* but we can use on a non-oplocked file. tridge proved this
/*
* We can only use sendfile on a non-chained packet
* but we can use on a non-oplocked file. tridge proved this
if ((smb_maxcnt & 0xFF0000) > 0x10000) {
uint8 headerbuf[smb_size + 2*12];
if ((smb_maxcnt & 0xFF0000) > 0x10000) {
uint8 headerbuf[smb_size + 2*12];
d_printf("pwrite_count: %u\n", profile_p->syscall_pwrite_count);
d_printf("pwrite_time: %u\n", profile_p->syscall_pwrite_time);
d_printf("pwrite_bytes: %u\n", profile_p->syscall_pwrite_bytes);
d_printf("pwrite_count: %u\n", profile_p->syscall_pwrite_count);
d_printf("pwrite_time: %u\n", profile_p->syscall_pwrite_time);
d_printf("pwrite_bytes: %u\n", profile_p->syscall_pwrite_bytes);
d_printf("sendfile_count: %u\n", profile_p->syscall_sendfile_count);
d_printf("sendfile_time: %u\n", profile_p->syscall_sendfile_time);
d_printf("sendfile_bytes: %u\n", profile_p->syscall_sendfile_bytes);
d_printf("sendfile_count: %u\n", profile_p->syscall_sendfile_count);
d_printf("sendfile_time: %u\n", profile_p->syscall_sendfile_time);
d_printf("sendfile_bytes: %u\n", profile_p->syscall_sendfile_bytes);
d_printf("lseek_count: %u\n", profile_p->syscall_lseek_count);
d_printf("lseek_time: %u\n", profile_p->syscall_lseek_time);
d_printf("rename_count: %u\n", profile_p->syscall_rename_count);
d_printf("lseek_count: %u\n", profile_p->syscall_lseek_count);
d_printf("lseek_time: %u\n", profile_p->syscall_lseek_time);
d_printf("rename_count: %u\n", profile_p->syscall_rename_count);