diff options
author | Michael Adam <obnox@samba.org> | 2014-06-13 11:39:41 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-06-13 17:29:10 +0200 |
commit | ddb7d7fc940835e04a5d909790f99cee5c74084d (patch) | |
tree | 5e879fcb472378b891264cf2a1881d1de76c7b83 /source3/smbd/vfs.c | |
parent | 5c874251ff78708706c7b421bb24c00ccd995a65 (diff) | |
download | samba-ddb7d7fc940835e04a5d909790f99cee5c74084d.tar.gz |
vfs: remove unused function vfs_pread_data()
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r-- | source3/smbd/vfs.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 897bf1f338e..d5390ed0ca3 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -393,28 +393,6 @@ ssize_t vfs_read_data(files_struct *fsp, char *buf, size_t byte_count) return (ssize_t)total; } -ssize_t vfs_pread_data(files_struct *fsp, char *buf, - size_t byte_count, off_t offset) -{ - size_t total=0; - - while (total < byte_count) - { - ssize_t ret = SMB_VFS_PREAD(fsp, buf + total, - byte_count - total, offset + total); - - if (ret == 0) return total; - if (ret == -1) { - if (errno == EINTR) - continue; - else - return -1; - } - total += ret; - } - return (ssize_t)total; -} - /**************************************************************************** Write data to a fd on the vfs. ****************************************************************************/ |