mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
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>
This commit is contained in:
parent
23cd573b46
commit
002b36ba5e
1 changed files with 4 additions and 2 deletions
|
@ -126,9 +126,11 @@ static int monc_show(struct seq_file *s, void *p)
|
||||||
req = rb_entry(rp, struct ceph_mon_generic_request, node);
|
req = rb_entry(rp, struct ceph_mon_generic_request, node);
|
||||||
op = le16_to_cpu(req->request->hdr.type);
|
op = le16_to_cpu(req->request->hdr.type);
|
||||||
if (op == CEPH_MSG_STATFS)
|
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
|
else
|
||||||
seq_printf(s, "%lld unknown\n", req->tid);
|
seq_printf(s, "%llu unknown\n", req->tid);
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_unlock(&monc->mutex);
|
mutex_unlock(&monc->mutex);
|
||||||
|
|
Loading…
Reference in a new issue