aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/ceph_strings.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-12 17:48:20 -0400
committerSage Weil <sage@newdream.net>2010-05-17 18:25:38 -0400
commitca9d93a292e327bbcddd8f8ea4197397e35097d4 (patch)
tree30e81e64079228bca30b4b32b5ad4df68eca6dc2 /fs/ceph/ceph_strings.c
parent1a75627896fe67d0124eab6fe2f83dd40188c40c (diff)
ceph: resync headers with userland
Notable changes include pool op defines and types, FLOCK feature bit, and new CMPXATTR osd ops. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/ceph_strings.c')
-rw-r--r--fs/ceph/ceph_strings.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/fs/ceph/ceph_strings.c b/fs/ceph/ceph_strings.c
index 8e4be6a80c62..78908301ff17 100644
--- a/fs/ceph/ceph_strings.c
+++ b/fs/ceph/ceph_strings.c
@@ -10,7 +10,6 @@ const char *ceph_entity_type_name(int type)
10 case CEPH_ENTITY_TYPE_OSD: return "osd"; 10 case CEPH_ENTITY_TYPE_OSD: return "osd";
11 case CEPH_ENTITY_TYPE_MON: return "mon"; 11 case CEPH_ENTITY_TYPE_MON: return "mon";
12 case CEPH_ENTITY_TYPE_CLIENT: return "client"; 12 case CEPH_ENTITY_TYPE_CLIENT: return "client";
13 case CEPH_ENTITY_TYPE_ADMIN: return "admin";
14 case CEPH_ENTITY_TYPE_AUTH: return "auth"; 13 case CEPH_ENTITY_TYPE_AUTH: return "auth";
15 default: return "unknown"; 14 default: return "unknown";
16 } 15 }
@@ -45,6 +44,7 @@ const char *ceph_osd_op_name(int op)
45 case CEPH_OSD_OP_SETXATTRS: return "setxattrs"; 44 case CEPH_OSD_OP_SETXATTRS: return "setxattrs";
46 case CEPH_OSD_OP_RESETXATTRS: return "resetxattrs"; 45 case CEPH_OSD_OP_RESETXATTRS: return "resetxattrs";
47 case CEPH_OSD_OP_RMXATTR: return "rmxattr"; 46 case CEPH_OSD_OP_RMXATTR: return "rmxattr";
47 case CEPH_OSD_OP_CMPXATTR: return "cmpxattr";
48 48
49 case CEPH_OSD_OP_PULL: return "pull"; 49 case CEPH_OSD_OP_PULL: return "pull";
50 case CEPH_OSD_OP_PUSH: return "push"; 50 case CEPH_OSD_OP_PUSH: return "push";
@@ -174,3 +174,24 @@ const char *ceph_snap_op_name(int o)
174 } 174 }
175 return "???"; 175 return "???";
176} 176}
177
178const char *ceph_pool_op_name(int op) {
179 switch (op) {
180 case POOL_OP_CREATE:
181 return "create pool";
182 case POOL_OP_DELETE:
183 return "delete pool";
184 case POOL_OP_AUID_CHANGE:
185 return "change auid";
186 case POOL_OP_CREATE_SNAP:
187 return "create snap";
188 case POOL_OP_DELETE_SNAP:
189 return "delete snap";
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}