]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ceph: cleanup pool op strings
authorSage Weil <sage@newdream.net>
Fri, 14 May 2010 18:36:48 +0000 (11:36 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 22:25:41 +0000 (15:25 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/ceph_strings.c

index 78908301ff176a6a2e427dd318961afc82242983..7503aee828cef9156e3a875f91e9b87e132911b9 100644 (file)
@@ -175,23 +175,16 @@ const char *ceph_snap_op_name(int o)
        return "???";
 }
 
-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";
-  }
+const char *ceph_pool_op_name(int op)
+{
+       switch (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";
+       }
+       return "???";
 }