ceph: cleanup pool op strings
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
cffe7b6d8c
commit
366837706b
1 changed files with 12 additions and 19 deletions
|
@ -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) {
|
{
|
||||||
case POOL_OP_CREATE:
|
switch (op) {
|
||||||
return "create pool";
|
case POOL_OP_CREATE: return "create";
|
||||||
case POOL_OP_DELETE:
|
case POOL_OP_DELETE: return "delete";
|
||||||
return "delete pool";
|
case POOL_OP_AUID_CHANGE: return "auid change";
|
||||||
case POOL_OP_AUID_CHANGE:
|
case POOL_OP_CREATE_SNAP: return "create snap";
|
||||||
return "change auid";
|
case POOL_OP_DELETE_SNAP: return "delete snap";
|
||||||
case POOL_OP_CREATE_SNAP:
|
case POOL_OP_CREATE_UNMANAGED_SNAP: return "create unmanaged snap";
|
||||||
return "create snap";
|
case POOL_OP_DELETE_UNMANAGED_SNAP: return "delete unmanaged snap";
|
||||||
case POOL_OP_DELETE_SNAP:
|
}
|
||||||
return "delete snap";
|
return "???";
|
||||||
case POOL_OP_CREATE_UNMANAGED_SNAP:
|
|
||||||
return "create unmanaged snap";
|
|
||||||
case POOL_OP_DELETE_UNMANAGED_SNAP:
|
|
||||||
return "delete unmanaged snap";
|
|
||||||
default:
|
|
||||||
return "unknown";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue