mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
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:
commit
ec7565deec
@ -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
|
||||
*
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user