From 9f2a81c4796c61c42660ff3407ca12ec4f137593 Mon Sep 17 00:00:00 2001 From: Kaleb S KEITHLEY Date: Mon, 16 Nov 2015 19:20:22 -0500 Subject: core: use syscall wrappers instead of direct syscalls - tail(2) tail, as in dog chasing its tail. These are the unwrapped syscalls that have crept in (or were missed) in the previous patches. 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: I6015f97109c4250a5a049496a214d19835e4ae19 BUG: 1267967 Signed-off-by: Kaleb S KEITHLEY Reviewed-on: http://review.gluster.org/12590 Tested-by: NetBSD Build System Tested-by: Gluster Build System --- xlators/storage/bd/src/bd-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/storage/bd/src/bd-helper.c b/xlators/storage/bd/src/bd-helper.c index 520ddd86c06..8b4536f49d9 100644 --- a/xlators/storage/bd/src/bd-helper.c +++ b/xlators/storage/bd/src/bd-helper.c @@ -842,7 +842,7 @@ bd_do_manual_zerofill (int fd, off_t offset, off_t len, int o_direct) vector[idx].iov_len = vect_size; } - if (lseek (fd, offset, SEEK_SET) < 0) { + if (sys_lseek (fd, offset, SEEK_SET) < 0) { op_ret = -1; goto err; } -- cgit