path: root/libglusterfs/src/compat.c
diff options
authorKaleb S. KEITHLEY <>2015-10-01 16:28:58 -0400
committerJeff Darcy <>2015-11-16 06:18:10 -0800
commit2099cc875a4d20ab1bb12b1c33da16c95968e202 (patch)
tree78b611ee025511a06f28e8d5e63453f1dc5d8f1d /libglusterfs/src/compat.c
parent3f0c70f2d56743707699f6a5b62a1c2c2d5c6f85 (diff)
core: use syscall wrappers instead of direct syscalls - libglusterfs
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: Ieeca2d36adbc884e4cfa0026dba40df70310d40b BUG: 1267967 Signed-off-by: Kaleb S. KEITHLEY <> Reviewed-on: Tested-by: NetBSD Build System <> Tested-by: Gluster Build System <> Reviewed-by: Jeff Darcy <>
Diffstat (limited to 'libglusterfs/src/compat.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/compat.c b/libglusterfs/src/compat.c
index e50f27b..621ff5f 100644
--- a/libglusterfs/src/compat.c
+++ b/libglusterfs/src/compat.c
@@ -24,6 +24,7 @@
#include "common-utils.h"
#include "iatt.h"
#include "inode.h"
+#include "syscall.h"
#include "run.h"
#include "libglusterfs-messages.h"
@@ -570,7 +571,7 @@ gf_umount_lazy (char *xlname, char *path, int rmdir_flag)
if (!ret && rmdir_flag) {
- ret = rmdir (path);
+ ret = sys_rmdir (path);
if (ret)
gf_msg (xlname, GF_LOG_WARNING, errno,
LG_MSG_DIR_OP_FAILED, "rmdir %s", path);