aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-05-12 05:05:47 -0400
committerYan, Zheng <zheng.z.yan@intel.com>2014-06-05 21:29:56 -0400
commit002b36ba5ef7a0e2ad0392130a71029765136cf0 (patch)
tree894ff9218549e14d3d8e31699d728924286d71c8
parent23cd573b46c1f90645023ca2989bc041a0fcf38c (diff)
libceph: recognize poolop requests in debugfs
Recognize poolop requests in debugfs monc dump, fix prink format specifiers - tid is unsigned. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
-rw-r--r--net/ceph/debugfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c
index 10421a4b76f8..8903dcee8d8e 100644
--- a/net/ceph/debugfs.c
+++ b/net/ceph/debugfs.c
@@ -126,9 +126,11 @@ static int monc_show(struct seq_file *s, void *p)
126 req = rb_entry(rp, struct ceph_mon_generic_request, node); 126 req = rb_entry(rp, struct ceph_mon_generic_request, node);
127 op = le16_to_cpu(req->request->hdr.type); 127 op = le16_to_cpu(req->request->hdr.type);
128 if (op == CEPH_MSG_STATFS) 128 if (op == CEPH_MSG_STATFS)
129 seq_printf(s, "%lld statfs\n", req->tid); 129 seq_printf(s, "%llu statfs\n", req->tid);
130 else if (op == CEPH_MSG_POOLOP)
131 seq_printf(s, "%llu poolop\n", req->tid);
130 else 132 else
131 seq_printf(s, "%lld unknown\n", req->tid); 133 seq_printf(s, "%llu unknown\n", req->tid);
132 } 134 }
133 135
134 mutex_unlock(&monc->mutex); 136 mutex_unlock(&monc->mutex);