gogfapi
gogfapi copied to clipboard
[gluster6] fails to compile because of glusterfs API incompatibility
Trying to use gogfapi at fedora and it fails:
gfapi/fd_legacy.go:17:26: not enough arguments in call to _C2func_glfs_fsync
have (*_Ctype_struct_glfs_fd)
want (*_Ctype_struct_glfs_fd, *_Ctype_struct_glfs_stat, *_Ctype_struct_glfs_stat)
gfapi/fd_legacy.go:28:28: not enough arguments in call to _C2func_glfs_ftruncate
have (*_Ctype_struct_glfs_fd, _Ctype_long)
want (*_Ctype_struct_glfs_fd, _Ctype_long, *_Ctype_struct_glfs_stat, *_Ctype_struct_glfs_stat)
gfapi/fd_legacy.go:37:24: not enough arguments in call to _C2func_glfs_pread
have (*_Ctype_struct_glfs_fd, unsafe.Pointer, _Ctype_ulong, _Ctype_long, number)
want (*_Ctype_struct_glfs_fd, unsafe.Pointer, _Ctype_ulong, _Ctype_long, _Ctype_int, *_Ctype_struct_glfs_stat)
gfapi/fd_legacy.go:46:25: not enough arguments in call to _C2func_glfs_pwrite
have (*_Ctype_struct_glfs_fd, unsafe.Pointer, _Ctype_ulong, _Ctype_long, number)
want (*_Ctype_struct_glfs_fd, unsafe.Pointer, _Ctype_ulong, _Ctype_long, _Ctype_int, *_Ctype_struct_glfs_stat, *_Ctype_struct_glfs_stat)
FAIL github.com/gluster/gogfapi/gfapi [build failed]
FAIL
It looks like gluster6 changes their API.
2.gfapi: A class of APIs have been enhanced to return pre/post gluster_stat information
A set of apis have been enhanced to return pre/post gluster_stat information. Applications using gfapi would need to adapt to the newer interfaces to compile against release-6 apis. Pre-compiled applications, or applications using the older API SDK will continue to work as before.
Are there any plans to adapt to the newer interfaces ?