diff options
author | Tim Prouty <tprouty@samba.org> | 2009-02-13 21:36:42 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-02-13 21:36:42 -0800 |
commit | 85eccea0b435e4b3c6fb4da6f0a7ea6e9b28b070 (patch) | |
tree | 0590a544b92e9b8805924c456c760312c43874f0 /source3/modules/vfs_onefs.c | |
parent | c05eb1a835ddf0165f72f218d6e1940a02ded37e (diff) | |
download | samba-85eccea0b435e4b3c6fb4da6f0a7ea6e9b28b070.tar.gz samba-85eccea0b435e4b3c6fb4da6f0a7ea6e9b28b070.tar.xz samba-85eccea0b435e4b3c6fb4da6f0a7ea6e9b28b070.zip |
s3 OneFS: Add recvfile implementation
Diffstat (limited to 'source3/modules/vfs_onefs.c')
-rw-r--r-- | source3/modules/vfs_onefs.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/modules/vfs_onefs.c b/source3/modules/vfs_onefs.c index 123139f729..fe0dfc9ea0 100644 --- a/source3/modules/vfs_onefs.c +++ b/source3/modules/vfs_onefs.c @@ -153,6 +153,18 @@ static int onefs_open(vfs_handle_struct *handle, const char *fname, return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode); } +static ssize_t onefs_recvfile(vfs_handle_struct *handle, int fromfd, + files_struct *tofsp, SMB_OFF_T offset, + size_t count) +{ + ssize_t result; + + START_PROFILE_BYTES(syscall_recvfile, count); + result = onefs_sys_recvfile(fromfd, tofsp->fh->fd, offset, count); + END_PROFILE(syscall_recvfile); + return result; +} + static uint64_t onefs_get_alloc_size(struct vfs_handle_struct *handle, files_struct *fsp, const SMB_STRUCT_STAT *sbuf) @@ -309,6 +321,8 @@ static vfs_op_tuple onefs_ops[] = { SMB_VFS_LAYER_OPAQUE}, {SMB_VFS_OP(onefs_close), SMB_VFS_OP_CLOSE, SMB_VFS_LAYER_TRANSPARENT}, + {SMB_VFS_OP(onefs_recvfile), SMB_VFS_OP_RECVFILE, + SMB_VFS_LAYER_OPAQUE}, {SMB_VFS_OP(onefs_rename), SMB_VFS_OP_RENAME, SMB_VFS_LAYER_TRANSPARENT}, {SMB_VFS_OP(onefs_stat), SMB_VFS_OP_STAT, |