summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorKaleb S KEITHLEY <kkeithle@redhat.com>2015-12-07 10:22:05 -0500
committerNiels de Vos <ndevos@redhat.com>2015-12-22 09:11:30 -0800
commit76f1680a2de05420934e131f934f3895fbe50db8 (patch)
tree54d7234fa2bef0f9adb43a15ef65db112b0b1ca4 /xlators/features
parent439de31320315872d988720991e9baaead8712db (diff)
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 <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/12895 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c4
-rw-r--r--xlators/features/changelog/lib/src/gf-history-changelog.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c b/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c
index 306b44da083..7bd270d1513 100644
--- a/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c
+++ b/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c
@@ -229,7 +229,7 @@ br_stub_check_stub_directory (xlator_t *this, char *fullpath)
int ret = 0;
struct stat st = {0,};
- ret = stat (fullpath, &st);
+ ret = sys_stat (fullpath, &st);
if (!ret && !S_ISDIR (st.st_mode))
goto error_return;
if (ret) {
@@ -262,7 +262,7 @@ br_stub_check_stub_file (xlator_t *this, char *path)
int fd = -1;
struct stat st = {0,};
- ret = stat (path, &st);
+ ret = sys_stat (path, &st);
if (!ret && !S_ISREG (st.st_mode))
goto error_return;
if (ret) {
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,