1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Fix the build of the cacheprime VFS module after API changes.

Sorry, that had escaped my attention.

Michael
(This used to be commit 88102b5b7c)
This commit is contained in:
Michael Adam 2008-01-10 23:40:13 +01:00
parent 0bfa867159
commit e17642e849

View File

@ -142,16 +142,15 @@ static ssize_t cprime_sendfile(
static ssize_t cprime_read(
vfs_handle_struct * handle,
files_struct * fsp,
int fd,
void * data,
size_t count)
{
SMB_OFF_T offset;
offset = SMB_VFS_LSEEK(fsp, fd, 0, SEEK_CUR);
offset = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
if (offset >= 0 && g_readbuf) {
prime_cache(handle, fsp, fd, offset, count);
SMB_VFS_LSEEK(fsp, fd, offset, SEEK_SET);
prime_cache(handle, fsp, fsp->fh->fd, offset, count);
SMB_VFS_LSEEK(fsp, offset, SEEK_SET);
}
return SMB_VFS_NEXT_READ(handle, fsp, data, count);