From 76f1680a2de05420934e131f934f3895fbe50db8 Mon Sep 17 00:00:00 2001 From: Kaleb S KEITHLEY Date: Mon, 7 Dec 2015 10:22:05 -0500 Subject: core: add preadv, pwritev, pread, pwrite syscall wrappers add additional system calls plus pick up a couple missed unwrapped system calls that seem to have slipped into the master branch. Change-Id: If268ccd5e9a139ac3ffd38293c67cd2f62ea5b58 BUG: 1289258 Signed-off-by: Kaleb S KEITHLEY Reviewed-on: http://review.gluster.org/12895 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- xlators/features/changelog/lib/src/gf-history-changelog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/features/changelog/lib/src') diff --git a/xlators/features/changelog/lib/src/gf-history-changelog.c b/xlators/features/changelog/lib/src/gf-history-changelog.c index f7b58f5a965..389b65f3b16 100644 --- a/xlators/features/changelog/lib/src/gf-history-changelog.c +++ b/xlators/features/changelog/lib/src/gf-history-changelog.c @@ -335,7 +335,7 @@ gf_history_get_timestamp (int fd, int index, int len, return -1; } - n_read = pread (fd, path_buf, len, offset); + n_read = sys_pread (fd, path_buf, len, offset); if (n_read < 0 ) { ret = -1; gf_msg (this->name, GF_LOG_ERROR, errno, @@ -524,7 +524,7 @@ gf_changelog_consume_wrap (void* data) ccd->retval = -1; - nread = pread (ccd->fd, ccd->changelog, PATH_MAX, ccd->offset); + nread = sys_pread (ccd->fd, ccd->changelog, PATH_MAX, ccd->offset); if (nread < 0) { gf_msg (this->name, GF_LOG_ERROR, errno, CHANGELOG_LIB_MSG_READ_ERROR, -- cgit