Home
last modified time | relevance | path

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

/linux-2.6.39/net/ceph/ !
Dmon_client.c35 static int __validate_auth(struct ceph_mon_client *monc);
104 static void __send_prepared_auth_request(struct ceph_mon_client *monc, int len) in __send_prepared_auth_request() argument
106 monc->pending_auth = 1; in __send_prepared_auth_request()
107 monc->m_auth->front.iov_len = len; in __send_prepared_auth_request()
108 monc->m_auth->hdr.front_len = cpu_to_le32(len); in __send_prepared_auth_request()
109 ceph_con_revoke(monc->con, monc->m_auth); in __send_prepared_auth_request()
110 ceph_msg_get(monc->m_auth); /* keep our ref */ in __send_prepared_auth_request()
111 ceph_con_send(monc->con, monc->m_auth); in __send_prepared_auth_request()
117 static void __close_session(struct ceph_mon_client *monc) in __close_session() argument
119 if (monc->con) { in __close_session()
[all …]
Ddebugfs.c37 if (client->monc.monmap == NULL) in monmap_show()
40 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show()
41 for (i = 0; i < client->monc.monmap->num_mon; i++) { in monmap_show()
43 &client->monc.monmap->mon_inst[i]; in monmap_show()
91 struct ceph_mon_client *monc = &client->monc; in monc_show() local
94 mutex_lock(&monc->mutex); in monc_show()
96 if (monc->have_mdsmap) in monc_show()
97 seq_printf(s, "have mdsmap %u\n", (unsigned)monc->have_mdsmap); in monc_show()
98 if (monc->have_osdmap) in monc_show()
99 seq_printf(s, "have osdmap %u\n", (unsigned)monc->have_osdmap); in monc_show()
[all …]
Dceph_common.c149 if (ceph_monmap_contains(client->monc.monmap, in ceph_compare_options()
427 return client->monc.auth->global_id; in ceph_client_id()
457 err = ceph_monc_init(&client->monc, client); in ceph_create_client()
467 ceph_monc_stop(&client->monc); in ceph_create_client()
488 ceph_monc_stop(&client->monc); in ceph_destroy_client()
507 return client->monc.monmap && client->monc.monmap->epoch && in have_mon_and_osd_map()
535 err = ceph_monc_open_session(&client->monc); in __ceph_open_session()
Dosd_client.c666 struct ceph_auth_client *ac = osd->o_osdc->client->monc.auth; in put_osd()
1072 ceph_monc_request_next_osdmap(&osdc->client->monc); in handle_timeout()
1319 ceph_monc_request_next_osdmap(&osdc->client->monc); in kick_requests()
1423 ceph_monc_got_osdmap(&osdc->client->monc, osdc->osdmap->epoch); in ceph_osdc_handle_map()
1684 ceph_monc_request_next_osdmap(&osdc->client->monc); in ceph_osdc_start_request()
2082 struct ceph_auth_client *ac = osdc->client->monc.auth; in get_authorizer()
2114 struct ceph_auth_client *ac = osdc->client->monc.auth; in verify_authorizer_reply()
2123 struct ceph_auth_client *ac = osdc->client->monc.auth; in invalidate_authorizer()
2128 return ceph_monc_validate_auth(&osdc->client->monc); in invalidate_authorizer()
/linux-2.6.39/include/linux/ceph/ !
Dmon_client.h31 typedef void (*ceph_monc_request_func_t)(struct ceph_mon_client *monc,
36 struct ceph_mon_client *monc; member
95 extern int ceph_monc_init(struct ceph_mon_client *monc, struct ceph_client *cl);
96 extern void ceph_monc_stop(struct ceph_mon_client *monc);
104 extern int ceph_monc_got_mdsmap(struct ceph_mon_client *monc, u32 have);
105 extern int ceph_monc_got_osdmap(struct ceph_mon_client *monc, u32 have);
107 extern void ceph_monc_request_next_osdmap(struct ceph_mon_client *monc);
109 extern int ceph_monc_do_statfs(struct ceph_mon_client *monc,
112 extern int ceph_monc_open_session(struct ceph_mon_client *monc);
114 extern int ceph_monc_validate_auth(struct ceph_mon_client *monc);
[all …]
Dlibceph.h135 struct ceph_mon_client monc; member
/linux-2.6.39/fs/ceph/ !
Dsuper.c57 struct ceph_monmap *monmap = fsc->client->monc.monmap; in ceph_statfs()
63 err = ceph_monc_do_statfs(&fsc->client->monc, &st); in ceph_statfs()
440 fsc->client->monc.want_mdsmap = 1; in create_fs_client()
Dmds_client.c336 s->s_mdsc->fsc->client->monc.auth->ops->destroy_authorizer( in ceph_put_mds_session()
337 s->s_mdsc->fsc->client->monc.auth, in ceph_put_mds_session()
3252 ceph_monc_got_mdsmap(&mdsc->fsc->client->monc, epoch); in ceph_mdsc_handle_map()
3377 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in get_authorizer()
3411 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in verify_authorizer_reply()
3420 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in invalidate_authorizer()
3425 return ceph_monc_validate_auth(&mdsc->fsc->client->monc); in invalidate_authorizer()
/linux-2.6.39/drivers/block/ !
Drbd.c1607 ret = ceph_monc_create_snapid(&dev->client->monc, dev->poolid, in rbd_header_add_snap()