578
cs_error_t confdb_object_name_get (
579
confdb_handle_t handle,
580
hdb_handle_t object_handle,
582
size_t *object_name_len)
585
struct confdb_inst *confdb_inst;
587
struct req_lib_confdb_object_name_get request;
588
struct res_lib_confdb_object_name_get response;
590
error = hdb_error_to_cs(hdb_handle_get (&confdb_handle_t_db, handle, (void *)&confdb_inst));
591
if (error != CS_OK) {
595
if (confdb_inst->standalone) {
598
if (confdb_sa_object_name_get(object_handle, object_name, object_name_len))
599
error = CS_ERR_ACCESS;
603
request.header.size = sizeof (struct req_lib_confdb_object_name_get);
604
request.header.id = MESSAGE_REQ_CONFDB_OBJECT_NAME_GET;
605
request.object_handle = object_handle;
607
iov.iov_base = (char *)&request;
608
iov.iov_len = sizeof (struct req_lib_confdb_object_name_get);
610
error = coroipcc_msg_send_reply_receive (
615
sizeof (struct res_lib_confdb_object_name_get));
617
if (error != CS_OK) {
621
error = response.header.error;
622
if (error == CS_OK) {
623
*object_name_len = response.object_name.length;
624
memcpy(object_name, response.object_name.value, *object_name_len);
628
(void)hdb_handle_put (&confdb_handle_t_db, handle);
578
633
static cs_error_t do_find_destroy(
579
634
struct confdb_inst *confdb_inst,
580
635
hdb_handle_t find_handle)