summaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-05-12 13:05:47 +0400
committerYan, Zheng <zheng.z.yan@intel.com>2014-06-06 09:29:56 +0800
commit002b36ba5ef7a0e2ad0392130a71029765136cf0 (patch)
tree894ff9218549e14d3d8e31699d728924286d71c8 /net/ceph
parent23cd573b46c1f90645023ca2989bc041a0fcf38c (diff)
downloadop-kernel-dev-002b36ba5ef7a0e2ad0392130a71029765136cf0.zip
op-kernel-dev-002b36ba5ef7a0e2ad0392130a71029765136cf0.tar.gz
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>
Diffstat (limited to 'net/ceph')
-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 10421a4..8903dce 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)
req = rb_entry(rp, struct ceph_mon_generic_request, node);
op = le16_to_cpu(req->request->hdr.type);
if (op == CEPH_MSG_STATFS)
- seq_printf(s, "%lld statfs\n", req->tid);
+ seq_printf(s, "%llu statfs\n", req->tid);
+ else if (op == CEPH_MSG_POOLOP)
+ seq_printf(s, "%llu poolop\n", req->tid);
else
- seq_printf(s, "%lld unknown\n", req->tid);
+ seq_printf(s, "%llu unknown\n", req->tid);
}
mutex_unlock(&monc->mutex);
OpenPOWER on IntegriCloud