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:
parent
0bfa867159
commit
e17642e849
@ -142,16 +142,15 @@ static ssize_t cprime_sendfile(
|
|||||||
static ssize_t cprime_read(
|
static ssize_t cprime_read(
|
||||||
vfs_handle_struct * handle,
|
vfs_handle_struct * handle,
|
||||||
files_struct * fsp,
|
files_struct * fsp,
|
||||||
int fd,
|
|
||||||
void * data,
|
void * data,
|
||||||
size_t count)
|
size_t count)
|
||||||
{
|
{
|
||||||
SMB_OFF_T offset;
|
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) {
|
if (offset >= 0 && g_readbuf) {
|
||||||
prime_cache(handle, fsp, fd, offset, count);
|
prime_cache(handle, fsp, fsp->fh->fd, offset, count);
|
||||||
SMB_VFS_LSEEK(fsp, fd, offset, SEEK_SET);
|
SMB_VFS_LSEEK(fsp, offset, SEEK_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
return SMB_VFS_NEXT_READ(handle, fsp, data, count);
|
return SMB_VFS_NEXT_READ(handle, fsp, data, count);
|
||||||
|
Loading…
Reference in New Issue
Block a user