Lines Matching refs:client
37 struct ceph_client *client = s->private; in monmap_show() local
39 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()
57 struct ceph_client *client = s->private; in osdmap_show() local
58 struct ceph_osd_client *osdc = &client->osdc; in osdmap_show()
138 struct ceph_client *client = s->private; in monc_show() local
140 struct ceph_mon_client *monc = &client->monc; in monc_show()
339 struct ceph_client *client = s->private; in osdc_show() local
340 struct ceph_osd_client *osdc = &client->osdc; in osdc_show()
375 struct ceph_client *client = s->private; in client_options_show() local
378 ret = ceph_print_client_options(s, client); in client_options_show()
405 int ceph_debugfs_client_init(struct ceph_client *client) in ceph_debugfs_client_init() argument
410 snprintf(name, sizeof(name), "%pU.client%lld", &client->fsid, in ceph_debugfs_client_init()
411 client->monc.auth->global_id); in ceph_debugfs_client_init()
413 dout("ceph_debugfs_client_init %p %s\n", client, name); in ceph_debugfs_client_init()
415 BUG_ON(client->debugfs_dir); in ceph_debugfs_client_init()
416 client->debugfs_dir = debugfs_create_dir(name, ceph_debugfs_dir); in ceph_debugfs_client_init()
417 if (!client->debugfs_dir) in ceph_debugfs_client_init()
420 client->monc.debugfs_file = debugfs_create_file("monc", in ceph_debugfs_client_init()
422 client->debugfs_dir, in ceph_debugfs_client_init()
423 client, in ceph_debugfs_client_init()
425 if (!client->monc.debugfs_file) in ceph_debugfs_client_init()
428 client->osdc.debugfs_file = debugfs_create_file("osdc", in ceph_debugfs_client_init()
430 client->debugfs_dir, in ceph_debugfs_client_init()
431 client, in ceph_debugfs_client_init()
433 if (!client->osdc.debugfs_file) in ceph_debugfs_client_init()
436 client->debugfs_monmap = debugfs_create_file("monmap", in ceph_debugfs_client_init()
438 client->debugfs_dir, in ceph_debugfs_client_init()
439 client, in ceph_debugfs_client_init()
441 if (!client->debugfs_monmap) in ceph_debugfs_client_init()
444 client->debugfs_osdmap = debugfs_create_file("osdmap", in ceph_debugfs_client_init()
446 client->debugfs_dir, in ceph_debugfs_client_init()
447 client, in ceph_debugfs_client_init()
449 if (!client->debugfs_osdmap) in ceph_debugfs_client_init()
452 client->debugfs_options = debugfs_create_file("client_options", in ceph_debugfs_client_init()
454 client->debugfs_dir, in ceph_debugfs_client_init()
455 client, in ceph_debugfs_client_init()
457 if (!client->debugfs_options) in ceph_debugfs_client_init()
463 ceph_debugfs_client_cleanup(client); in ceph_debugfs_client_init()
467 void ceph_debugfs_client_cleanup(struct ceph_client *client) in ceph_debugfs_client_cleanup() argument
469 dout("ceph_debugfs_client_cleanup %p\n", client); in ceph_debugfs_client_cleanup()
470 debugfs_remove(client->debugfs_options); in ceph_debugfs_client_cleanup()
471 debugfs_remove(client->debugfs_osdmap); in ceph_debugfs_client_cleanup()
472 debugfs_remove(client->debugfs_monmap); in ceph_debugfs_client_cleanup()
473 debugfs_remove(client->osdc.debugfs_file); in ceph_debugfs_client_cleanup()
474 debugfs_remove(client->monc.debugfs_file); in ceph_debugfs_client_cleanup()
475 debugfs_remove(client->debugfs_dir); in ceph_debugfs_client_cleanup()
489 int ceph_debugfs_client_init(struct ceph_client *client) in ceph_debugfs_client_init() argument
494 void ceph_debugfs_client_cleanup(struct ceph_client *client) in ceph_debugfs_client_cleanup() argument