| #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_state_name(int s) |
| const char *ceph_pool_op_name(int op) |
| case POOL_OP_CREATE: return "create"; |
| case POOL_OP_DELETE: return "delete"; |
| case POOL_OP_AUID_CHANGE: return "auid change"; |
| case POOL_OP_CREATE_SNAP: return "create snap"; |
| case POOL_OP_DELETE_SNAP: return "delete snap"; |
| case POOL_OP_CREATE_UNMANAGED_SNAP: return "create unmanaged snap"; |
| case POOL_OP_DELETE_UNMANAGED_SNAP: return "delete unmanaged snap"; |