From 6df97fd49fa9be6394bd066c6c64fd7c06959a77 Mon Sep 17 00:00:00 2001 From: Prashanth Pai Date: Tue, 23 Feb 2016 19:06:44 +0530 Subject: Disable glfs_dup tests This change also fixes a mismatch in glfs_seek() function signature. Change-Id: I3d336a2fbfec9ba921b253f6d97616485cadec98 Signed-off-by: Prashanth Pai --- gluster/api.py | 4 ++-- gluster/gfapi.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'gluster') diff --git a/gluster/api.py b/gluster/api.py index c7270bb..c0bad67 100755 --- a/gluster/api.py +++ b/gluster/api.py @@ -348,8 +348,8 @@ glfs_fdatasync = gfapi_prototype('glfs_fdatasync', ctypes.c_int, glfs_fsync = gfapi_prototype('glfs_fsync', ctypes.c_int, ctypes.c_void_p) -glfs_lseek = gfapi_prototype('glfs_lseek', ctypes.c_ulong, - ctypes.c_void_p, ctypes.c_ulong, +glfs_lseek = gfapi_prototype('glfs_lseek', ctypes.c_int, + ctypes.c_void_p, ctypes.c_int, ctypes.c_int) glfs_read = gfapi_prototype('glfs_read', ctypes.c_ssize_t, diff --git a/gluster/gfapi.py b/gluster/gfapi.py index 3a344c8..fa0e1b3 100755 --- a/gluster/gfapi.py +++ b/gluster/gfapi.py @@ -93,6 +93,7 @@ class File(object): raise OSError(err, os.strerror(err)) def dup(self): + raise LibgfapiException("glfs_dup is currently broken (BZ 1311146)") dupfd = api.glfs_dup(self.fd) if not dupfd: err = ctypes.get_errno() -- cgit