| // SPDX-License-Identifier: GPL-2.0 |
| #include <linux/module.h> |
| #include <linux/ceph/types.h> |
| const char *ceph_entity_type_name(int type) |
| case CEPH_ENTITY_TYPE_MDS: return "mds"; |
| case CEPH_ENTITY_TYPE_OSD: return "osd"; |
| case CEPH_ENTITY_TYPE_MON: return "mon"; |
| case CEPH_ENTITY_TYPE_CLIENT: return "client"; |
| case CEPH_ENTITY_TYPE_AUTH: return "auth"; |
| default: return "unknown"; |
| EXPORT_SYMBOL(ceph_entity_type_name); |
| const char *ceph_auth_proto_name(int proto) |
| const char *ceph_con_mode_name(int mode) |
| case CEPH_CON_MODE_UNKNOWN: |
| case CEPH_CON_MODE_SECURE: |
| const char *ceph_osd_op_name(int op) |
| #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return (str); |
| __CEPH_FORALL_OSD_OPS(GENERATE_CASE) |
| const char *ceph_osd_watch_op_name(int o) |
| case CEPH_OSD_WATCH_OP_UNWATCH: |
| case CEPH_OSD_WATCH_OP_WATCH: |
| case CEPH_OSD_WATCH_OP_RECONNECT: |
| case CEPH_OSD_WATCH_OP_PING: |
| const char *ceph_osd_state_name(int s) |