From 6718342a2cc853e8e6b268abe802d5bd28eca8c0 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 1 Jul 2014 16:08:40 -0700 Subject: porting: Provide fallocate and fremovexattr for OSX Change-Id: I563216f83edaff6d01a251ef0c1746a14aec700c BUG: 1089172 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/8217 Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- xlators/storage/posix/src/posix-helpers.c | 2 +- xlators/storage/posix/src/posix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/storage/posix') diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index c2f87c893d3..9ba95bc4941 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -528,7 +528,7 @@ posix_pstat (xlator_t *this, uuid_t gfid, const char *path, priv = this->private; - ret = lstat (path, &lstatbuf); + ret = sys_lstat (path, &lstatbuf); if (ret != 0) { if (ret == -1) { diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index ef98939c46d..eb0bac66d06 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1013,7 +1013,7 @@ posix_readlink (call_frame_t *frame, xlator_t *this, goto out; } - op_ret = readlink (real_path, dest, size); + op_ret = sys_readlink (real_path, dest, size); if (op_ret == -1) { op_errno = errno; gf_log (this->name, GF_LOG_ERROR, -- cgit