diff options
author | Alex Elder <elder@inktank.com> | 2013-02-15 12:42:30 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2013-02-18 13:20:34 -0500 |
commit | 0eb40bf65e2fcc1c23ed7c9a10cd0890ee59e68f (patch) | |
tree | b55e6a0a5c72bbefd7b72138d048a4eda502ddac | |
parent | dd6f5e105d85e02bc41db0891eb07152b1746ad9 (diff) |
libceph: update ceph_mds_state_name() and ceph_mds_op_name()
Update ceph_mds_state_name() and ceph_mds_op_name() to include the
newly-added definitions in "ceph_fs.h", and to match its counterpart
in the user space code.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
-rw-r--r-- | fs/ceph/strings.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ceph/strings.c b/fs/ceph/strings.c index cd5097d7c804..89fa4a940a0f 100644 --- a/fs/ceph/strings.c +++ b/fs/ceph/strings.c | |||
@@ -15,6 +15,7 @@ const char *ceph_mds_state_name(int s) | |||
15 | case CEPH_MDS_STATE_BOOT: return "up:boot"; | 15 | case CEPH_MDS_STATE_BOOT: return "up:boot"; |
16 | case CEPH_MDS_STATE_STANDBY: return "up:standby"; | 16 | case CEPH_MDS_STATE_STANDBY: return "up:standby"; |
17 | case CEPH_MDS_STATE_STANDBY_REPLAY: return "up:standby-replay"; | 17 | case CEPH_MDS_STATE_STANDBY_REPLAY: return "up:standby-replay"; |
18 | case CEPH_MDS_STATE_REPLAYONCE: return "up:oneshot-replay"; | ||
18 | case CEPH_MDS_STATE_CREATING: return "up:creating"; | 19 | case CEPH_MDS_STATE_CREATING: return "up:creating"; |
19 | case CEPH_MDS_STATE_STARTING: return "up:starting"; | 20 | case CEPH_MDS_STATE_STARTING: return "up:starting"; |
20 | /* up and in */ | 21 | /* up and in */ |
@@ -50,10 +51,13 @@ const char *ceph_mds_op_name(int op) | |||
50 | case CEPH_MDS_OP_LOOKUP: return "lookup"; | 51 | case CEPH_MDS_OP_LOOKUP: return "lookup"; |
51 | case CEPH_MDS_OP_LOOKUPHASH: return "lookuphash"; | 52 | case CEPH_MDS_OP_LOOKUPHASH: return "lookuphash"; |
52 | case CEPH_MDS_OP_LOOKUPPARENT: return "lookupparent"; | 53 | case CEPH_MDS_OP_LOOKUPPARENT: return "lookupparent"; |
54 | case CEPH_MDS_OP_LOOKUPINO: return "lookupino"; | ||
53 | case CEPH_MDS_OP_GETATTR: return "getattr"; | 55 | case CEPH_MDS_OP_GETATTR: return "getattr"; |
54 | case CEPH_MDS_OP_SETXATTR: return "setxattr"; | 56 | case CEPH_MDS_OP_SETXATTR: return "setxattr"; |
55 | case CEPH_MDS_OP_SETATTR: return "setattr"; | 57 | case CEPH_MDS_OP_SETATTR: return "setattr"; |
56 | case CEPH_MDS_OP_RMXATTR: return "rmxattr"; | 58 | case CEPH_MDS_OP_RMXATTR: return "rmxattr"; |
59 | case CEPH_MDS_OP_SETLAYOUT: return "setlayou"; | ||
60 | case CEPH_MDS_OP_SETDIRLAYOUT: return "setdirlayout"; | ||
57 | case CEPH_MDS_OP_READDIR: return "readdir"; | 61 | case CEPH_MDS_OP_READDIR: return "readdir"; |
58 | case CEPH_MDS_OP_MKNOD: return "mknod"; | 62 | case CEPH_MDS_OP_MKNOD: return "mknod"; |
59 | case CEPH_MDS_OP_LINK: return "link"; | 63 | case CEPH_MDS_OP_LINK: return "link"; |