Commit 36683770 authored by Sage Weil's avatar Sage Weil

ceph: cleanup pool op strings

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent cffe7b6d
...@@ -175,23 +175,16 @@ const char *ceph_snap_op_name(int o) ...@@ -175,23 +175,16 @@ const char *ceph_snap_op_name(int o)
return "???"; return "???";
} }
const char *ceph_pool_op_name(int op) { const char *ceph_pool_op_name(int op)
{
switch (op) { switch (op) {
case POOL_OP_CREATE: case POOL_OP_CREATE: return "create";
return "create pool"; case POOL_OP_DELETE: return "delete";
case POOL_OP_DELETE: case POOL_OP_AUID_CHANGE: return "auid change";
return "delete pool"; case POOL_OP_CREATE_SNAP: return "create snap";
case POOL_OP_AUID_CHANGE: case POOL_OP_DELETE_SNAP: return "delete snap";
return "change auid"; case POOL_OP_CREATE_UNMANAGED_SNAP: return "create unmanaged snap";
case POOL_OP_CREATE_SNAP: case POOL_OP_DELETE_UNMANAGED_SNAP: return "delete unmanaged 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";
default:
return "unknown";
} }
return "???";
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment