Merge pull request #32629 from tchaikov/wip-cephfs.pyx

libcephfs: add missing declaration of ceph_getaddrs()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Kefu Chai 2020-01-21 09:11:56 +08:00 committed by GitHub
commit ec7565deec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -355,6 +355,16 @@ int ceph_release(struct ceph_mount_info *cmount);
*/
void ceph_shutdown(struct ceph_mount_info *cmount);
/**
* Return associated client addresses
*
* @param cmount the mount handle
* @param addrs the output addresses
* @returns 0 on success, a negative error code on failure
* @note the returned addrs should be free by the caller
*/
int ceph_getaddrs(struct ceph_mount_info *cmount, char** addrs);
/**
* Get a global id for current instance
*

View File

@ -526,7 +526,7 @@ cdef class LibCephFS(object):
return decode_cstr(addrs)
finally:
free(addrs)
ceph_buffer_free(addrs)
def conf_read_file(self, conffile=None):