diff options
author | Sage Weil <sage@newdream.net> | 2010-05-14 11:36:48 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-17 15:25:41 -0700 |
commit | 366837706bae00abc2edd75add2579c1be18b2b8 (patch) | |
tree | cc66bd8c4696da8530912b9368bf73fff151df6c /fs/ceph | |
parent | cffe7b6d8cc029d13524acedf4917210dc0102ab (diff) | |
download | op-kernel-dev-366837706bae00abc2edd75add2579c1be18b2b8.zip op-kernel-dev-366837706bae00abc2edd75add2579c1be18b2b8.tar.gz |
ceph: cleanup pool op strings
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/ceph_strings.c | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/fs/ceph/ceph_strings.c b/fs/ceph/ceph_strings.c index 7890830..7503aee 100644 --- a/fs/ceph/ceph_strings.c +++ b/fs/ceph/ceph_strings.c @@ -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 "???"; } |