提交 36683770 编写于 作者: S Sage Weil

ceph: cleanup pool op strings

Signed-off-by: NSage Weil <sage@newdream.net>
上级 cffe7b6d
......@@ -175,23 +175,16 @@ const char *ceph_snap_op_name(int o)
return "???";
}
const char *ceph_pool_op_name(int op) {
const char *ceph_pool_op_name(int op)
{
switch (op) {
case POOL_OP_CREATE:
return "create pool";
case POOL_OP_DELETE:
return "delete pool";
case POOL_OP_AUID_CHANGE:
return "change auid";
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";
default:
return "unknown";
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";
}
return "???";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册