diff options
author | Kaleb S KEITHLEY <kkeithle@redhat.com> | 2015-11-16 19:20:22 -0500 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-11-17 00:43:02 -0800 |
commit | 9f2a81c4796c61c42660ff3407ca12ec4f137593 (patch) | |
tree | 5516b9d16fbbd13428e2082114129872405f8ff6 /xlators | |
parent | 535c9c117d88498e506103d212403d94e07c9ae1 (diff) |
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 <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/12590
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/storage/bd/src/bd-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |