From 063d4ead61ee47433793de81a1c77e0ba69e6e07 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Fri, 16 Oct 2015 13:52:28 -0400 Subject: core: use syscall wrappers instead of direct syscalls -- glusterd various xlators and other components are invoking system calls directly instead of using the libglusterfs/syscall.[ch] wrappers. If not using the system call wrappers there should be a comment in the source explaining why the wrapper isn't used. Change-Id: I28bf2a5f7730b35914e7ab57fed91e1966b30073 BUG: 1267967 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/12379 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy --- xlators/mgmt/glusterd/src/glusterd-ganesha.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-ganesha.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c index 4e2008b9c69..efc6b50db14 100644 --- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c +++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c @@ -17,6 +17,7 @@ #include "glusterd-nfs-svc.h" #include "glusterd-volgen.h" #include "glusterd-messages.h" +#include "syscall.h" #define MAXBUF 1024 #define DELIM "=\"" #define SHARED_STORAGE_MNT "/var/run/gluster/shared_storage/nfs-ganesha" @@ -74,7 +75,7 @@ manage_service (char *action) }; while (sc_list[i].binary != NULL) { - ret = stat (sc_list[i].binary, &stbuf); + ret = sys_stat (sc_list[i].binary, &stbuf); if (ret == 0) { gf_msg_debug (THIS->name, 0, "%s found.", sc_list[i].binary); @@ -695,7 +696,7 @@ pre_setup (char **op_errstr) { int ret = 0; - ret = mkdir (SHARED_STORAGE_MNT, 0775); + ret = sys_mkdir (SHARED_STORAGE_MNT, 0775); if ((-1 == ret) && (EEXIST != errno)) { gf_msg ("THIS->name", GF_LOG_ERROR, errno, -- cgit