Home
last modified time | relevance | path

Searched refs:monc (Results 1 – 4 of 4) sorted by relevance

/net/ceph/
Dmon_client.c37 static int __validate_auth(struct ceph_mon_client *monc);
175 static void __send_prepared_auth_request(struct ceph_mon_client *monc, int len) in __send_prepared_auth_request() argument
177 monc->pending_auth = 1; in __send_prepared_auth_request()
178 monc->m_auth->front.iov_len = len; in __send_prepared_auth_request()
179 monc->m_auth->hdr.front_len = cpu_to_le32(len); in __send_prepared_auth_request()
180 ceph_msg_revoke(monc->m_auth); in __send_prepared_auth_request()
181 ceph_msg_get(monc->m_auth); /* keep our ref */ in __send_prepared_auth_request()
182 ceph_con_send(&monc->con, monc->m_auth); in __send_prepared_auth_request()
188 static void __close_session(struct ceph_mon_client *monc) in __close_session() argument
190 dout("__close_session closing mon%d\n", monc->cur_mon); in __close_session()
[all …]
Ddebugfs.c39 if (client->monc.monmap == NULL) in monmap_show()
42 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show()
43 for (i = 0; i < client->monc.monmap->num_mon; i++) { in monmap_show()
45 &client->monc.monmap->mon_inst[i]; in monmap_show()
142 struct ceph_mon_client *monc = &client->monc; in monc_show() local
146 mutex_lock(&monc->mutex); in monc_show()
148 for (i = 0; i < ARRAY_SIZE(monc->subs); i++) { in monc_show()
150 monc->subs[i].have); in monc_show()
151 if (monc->subs[i].want) in monc_show()
153 le64_to_cpu(monc->subs[i].item.start), in monc_show()
[all …]
Dceph_common.c185 if (ceph_monmap_contains(client->monc.monmap, in ceph_compare_options()
720 return client->monc.auth->global_id; in ceph_client_gid()
762 err = ceph_monc_init(&client->monc, client); in ceph_create_client()
772 ceph_monc_stop(&client->monc); in ceph_create_client()
788 ceph_monc_stop(&client->monc); in ceph_destroy_client()
803 ceph_monc_reopen_session(&client->monc); in ceph_reset_client_addr()
813 return client->monc.monmap && client->monc.monmap->epoch && in have_mon_and_osd_map()
826 err = ceph_monc_open_session(&client->monc); in __ceph_open_session()
874 ret = ceph_monc_get_version(&client->monc, "osdmap", &newest_epoch); in ceph_wait_for_latest_osdmap()
882 return ceph_monc_wait_osdmap(&client->monc, newest_epoch, timeout); in ceph_wait_for_latest_osdmap()
Dosd_client.c2309 if (ceph_monc_want_map(&osdc->client->monc, CEPH_SUB_OSDMAP, in maybe_request_map()
2311 ceph_monc_renew_subs(&osdc->client->monc); in maybe_request_map()
2646 struct ceph_osd_client *osdc = &greq->monc->client->osdc; in map_check_cb()
2687 ret = ceph_monc_get_version_async(&osdc->client->monc, "osdmap", in send_map_check()
3280 struct ceph_osd_client *osdc = &greq->monc->client->osdc; in linger_map_check_cb()
3323 ret = ceph_monc_get_version_async(&osdc->client->monc, "osdmap", in send_linger_map_check()
4161 ceph_monc_got_map(&osdc->client->monc, CEPH_SUB_OSDMAP, in ceph_osdc_handle_map()
5534 struct ceph_auth_client *ac = osdc->client->monc.auth; in osd_get_authorizer()
5551 struct ceph_auth_client *ac = osdc->client->monc.auth; in osd_add_authorizer_challenge()
5561 struct ceph_auth_client *ac = osdc->client->monc.auth; in osd_verify_authorizer_reply()
[all …]