summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-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
-rw-r--r--xlators/storage/bd/src/bd.c10
-rw-r--r--xlators/storage/posix/src/posix.c8
4 files changed, 13 insertions, 13 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,
diff --git a/xlators/storage/bd/src/bd.c b/xlators/storage/bd/src/bd.c
index 9599f4acbd5..115b01d4ea6 100644
--- a/xlators/storage/bd/src/bd.c
+++ b/xlators/storage/bd/src/bd.c
@@ -485,7 +485,7 @@ bd_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
goto out;
}
_fd = bd_fd->fd;
- op_ret = pread (_fd, iobuf->ptr, size, offset);
+ op_ret = sys_pread (_fd, iobuf->ptr, size, offset);
if (op_ret == -1) {
op_errno = errno;
gf_log (this->name, GF_LOG_ERROR,
@@ -1787,7 +1787,7 @@ __bd_pwritev (int fd, struct iovec *vector, int count, off_t offset,
if (!vector)
return -EFAULT;
- retval = pwritev (fd, vector, count, offset);
+ retval = sys_pwritev (fd, vector, count, offset);
if (retval == -1) {
int64_t off = offset;
gf_log (THIS->name, GF_LOG_WARNING,
@@ -1810,8 +1810,8 @@ __bd_pwritev (int fd, struct iovec *vector, int count, off_t offset,
vector[index].iov_len = bd_size - internal_offset;
no_space = 1;
}
- retval = pwritev (fd, vector[index].iov_base,
- vector[index].iov_len, internal_offset);
+ retval = sys_pwritev (fd, vector[index].iov_base,
+ vector[index].iov_len, internal_offset);
if (retval == -1) {
gf_log (THIS->name, GF_LOG_WARNING,
"base %p, length %ld, offset %ld, message %s",
@@ -2174,7 +2174,7 @@ bd_rchecksum (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
LOCK (&fd->lock);
{
- ret = pread (_fd, buf, len, offset);
+ ret = sys_pread (_fd, buf, len, offset);
if (ret < 0) {
gf_log (this->name, GF_LOG_WARNING,
"pread of %d bytes returned %d (%s)",
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index ffae66db273..a3e0aa26bf8 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -2823,7 +2823,7 @@ posix_readv (call_frame_t *frame, xlator_t *this,
}
_fd = pfd->fd;
- op_ret = pread (_fd, iobuf->ptr, size, offset);
+ op_ret = sys_pread (_fd, iobuf->ptr, size, offset);
if (op_ret == -1) {
op_errno = errno;
gf_msg (this->name, GF_LOG_ERROR, errno, P_MSG_READ_FAILED,
@@ -2889,7 +2889,7 @@ __posix_pwritev (int fd, struct iovec *vector, int count, off_t offset)
internal_off = offset;
for (idx = 0; idx < count; idx++) {
- retval = pwrite (fd, vector[idx].iov_base, vector[idx].iov_len,
+ retval = sys_pwrite (fd, vector[idx].iov_base, vector[idx].iov_len,
internal_off);
if (retval == -1) {
op_ret = -errno;
@@ -2935,7 +2935,7 @@ __posix_writev (int fd, struct iovec *vector, int count, off_t startoff,
memcpy (buf, vector[idx].iov_base, vector[idx].iov_len);
/* not sure whether writev works on O_DIRECT'd fd */
- retval = pwrite (fd, buf, vector[idx].iov_len, internal_off);
+ retval = sys_pwrite (fd, buf, vector[idx].iov_len, internal_off);
if (retval == -1) {
op_ret = -errno;
goto err;
@@ -6105,7 +6105,7 @@ posix_rchecksum (call_frame_t *frame, xlator_t *this,
if (priv->aio_capable && priv->aio_init_done)
__posix_fd_set_odirect (fd, pfd, 0, offset, len);
- bytes_read = pread (_fd, buf, len, offset);
+ bytes_read = sys_pread (_fd, buf, len, offset);
if (bytes_read < 0) {
gf_msg (this->name, GF_LOG_WARNING, errno,
P_MSG_PREAD_FAILED,