| #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"; |
| 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) |