aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-14 14:36:48 -0400
committerSage Weil <sage@newdream.net>2010-05-17 18:25:41 -0400
commit366837706bae00abc2edd75add2579c1be18b2b8 (patch)
treecc66bd8c4696da8530912b9368bf73fff151df6c /fs/ceph
parentcffe7b6d8cc029d13524acedf4917210dc0102ab (diff)
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.c31
1 files changed, 12 insertions, 19 deletions
diff --git a/fs/ceph/ceph_strings.c b/fs/ceph/ceph_strings.c
index 78908301ff17..7503aee828ce 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)
175 return "???"; 175 return "???";
176} 176}
177 177
178const char *ceph_pool_op_name(int op) { 178const char *ceph_pool_op_name(int op)
179 switch (op) { 179{
180 case POOL_OP_CREATE: 180 switch (op) {
181 return "create pool"; 181 case POOL_OP_CREATE: return "create";
182 case POOL_OP_DELETE: 182 case POOL_OP_DELETE: return "delete";
183 return "delete pool"; 183 case POOL_OP_AUID_CHANGE: return "auid change";
184 case POOL_OP_AUID_CHANGE: 184 case POOL_OP_CREATE_SNAP: return "create snap";
185 return "change auid"; 185 case POOL_OP_DELETE_SNAP: return "delete snap";
186 case POOL_OP_CREATE_SNAP: 186 case POOL_OP_CREATE_UNMANAGED_SNAP: return "create unmanaged snap";
187 return "create snap"; 187 case POOL_OP_DELETE_UNMANAGED_SNAP: return "delete unmanaged snap";
188 case POOL_OP_DELETE_SNAP: 188 }
189 return "delete snap"; 189 return "???";
190 case POOL_OP_CREATE_UNMANAGED_SNAP:
191 return "create unmanaged snap";
192 case POOL_OP_DELETE_UNMANAGED_SNAP:
193 return "delete unmanaged snap";
194 default:
195 return "unknown";
196 }
197} 190}